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: Jonathan Larmour
Subject: [lwip-devel] [task #7525] Implement TCP listen backlog
Date: Wed, 19 Dec 2007 03:37:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8

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

It looks like Frederic was saying what I was thinking of pretty much. It
seems like much less code.

tcp_accepted() could probably be a macro, for now at least.

Although I'm not sure why we would change do_recv()? Can't we just call
tcp_accepted() from accept_function() ?

Of course we need to document tcp_accepted() for raw API users. But existing
raw API users are unaffected - it only matters if they set LWIP_LISTEN_BACKLOG
(although I'm sure it's best to have it defined as:
#if LWIP_LISTEN_BACKLOG
# define tcp_accepted(pcb) ((pcb)->to_accept--)
#else
# define tcp_accepted(pcb) /* NOTHING */
#endif
for API consistency).


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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