client socket impl
Merge https://github.com/mihirvj/p2p