Add handshake operation to CSocket class