Converted client to TCP socket
Improved efficiency of initial client connection; implementing locks on socket