[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Half-Open detecting
From: |
Steven Woody |
Subject: |
Re: [lwip-users] Half-Open detecting |
Date: |
Thu, 21 Apr 2011 22:24:12 +0800 |
On 21 April 2011 22:18, Kieran Mansley <address@hidden> wrote:
> On Thu, 2011-04-21 at 22:14 +0800, Steven Woody wrote:
>>
>> What mean I have to have a listening PCB? I had ever had it, but it
>> comes a active pcb, when the tcp_accept() get called and succeed.
>
> Ahh wait I think I understand your confusion. When your accept callback
> is called as a result of a new connection the PCB you're given is a new
> one, it's not the listening one, and the listening one has not become an
> active PCB. Your listening PCB is still there and still listening
> (unless you've closed it) and you will still get your accept callback
> called on it (with another new PCB) if a matching SYN arrives.
>
> Kieran
>
Ahh! I've recalled what I learned in university 10 years ago. Yes,
you're absolutely right. Now I think I've fully understood on the
topic. It's nice to talk with you!
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (address@hidden)
- Re: [lwip-users] Half-Open detecting, (continued)