From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5118 invoked by alias); 16 Aug 2006 14:28:31 -0000 Received: (qmail 5109 invoked by uid 22791); 16 Aug 2006 14:28:31 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Aug 2006 14:28:28 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1GDMNc-0005Bd-00; Wed, 16 Aug 2006 16:28:24 +0200 Date: Wed, 16 Aug 2006 14:28:00 -0000 To: Roger Arn Cc: ecos-discuss@sourceware.org Message-ID: <20060816142824.GC29833@lunn.ch> Mail-Followup-To: Roger Arn , ecos-discuss@sourceware.org References: <2B50D5CBAB0B64408C8D96314BC296722E2680@server2005.affolter.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2B50D5CBAB0B64408C8D96314BC296722E2680@server2005.affolter.local> User-Agent: Mutt/1.5.12-2006-07-14 From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] RE : [ECOS] I lose sockets X-SW-Source: 2006-08/txt/msg00168.txt.bz2 Ah, now i see your problem. You have the basic TCP server structure wrong. You should create one listen'ing socket and then keep it for ever, repeatadly doing accept() on it as each client connects. ie you don't need a listening socket per connection. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss