client, peer, proxy socket connection part end -> read / write part start
Decide to use pthread.h