lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7525] Implement TCP listen backlog


From: Frédéric Bernon
Subject: [lwip-devel] [task #7525] Implement TCP listen backlog
Date: Fri, 04 Jan 2008 13:04:39 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Follow-up Comment #31, task #7525 (project lwip):

>About "he listen backlog (0 = max)", I also thought about that. I think it
is OK to leave it 0 = DEFAULT if it's well documented. The only problem I see
here is that socket users can't set a maximum value (since socket API uses int
while we use u8_t).

For socket API, perhaps we could remove the asserts and replace if by a
"clamping" code like that in lwip_listen :

if (backlog<0) {
  backlog=0;
}
if (backlog>0xff) { 
  backlog=0xff;
}


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7525>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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