lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Newbie question (tcp_pcb* allocation)


From: Leon Woestenberg
Subject: Re: [lwip-users] Newbie question (tcp_pcb* allocation)
Date: Fri, 27 Feb 2004 11:30:24 +0100
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

Hello,

Robert wrote:
On Thu, 26 Feb 2004, Leon Woestenberg wrote:

Co-developers, is there a way to allocate a listening TCP PCB
from start? The above looks quite over-the-head for simply
accepting a connection, although it does hide the gory details.


From my point of view, the listening tcb is a good thing. Typically I
open a listening tcp at the system startup. Many connections may occur using this same listening tcp, since usually I want a server, and I want to continue to accept additional connections using this same listening tcb even while others are already exchanging traffic.

Yes, I agree that a listening TCP PCB is a good thing. But what happens is; you first allocate a full PCB, then a listening PCB, and when the
connection occurs, again a full PCB.

Maybe there should be a way of allocating a listening PCB right away?
Just an idea, the current stuff works OK furterwise.

Regards,

Leon.




reply via email to

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