Initial tcpSocket implementation