lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip tcp hangup


From: Simon Goldschmidt
Subject: Re: [lwip-users] lwip tcp hangup
Date: Thu, 01 Sep 2011 09:28:44 +0200

vincent cui <address@hidden> wrote:
> Does the backlog parameter in lwIP_listen works? 
> It mean the max connection number at same time. Right ?

Here's what the standard says about the backlog parameter:

"The backlog argument provides a hint to the implementation which the 
implementation shall use to limit the number of outstanding connections in 
the socket's listen queue."

To us, this always meant that the backlog is the number of connections that are 
accepted internally (SYN-ACK sent) and not yet received by the application code 
(using accept()).

What you want (number of connections to one port) is a different thing. You'd 
have to implement it manually by either closing the listening port and 
reopening it later or by closing all new connections when your maximum number 
of parallel connections is reached.

Simon
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone



reply via email to

[Prev in Thread] Current Thread [Next in Thread]