Server and client sockets moved to different thread