TCP handshake between client and server implemented