lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] disconnect - connect delay


From: brak brak2
Subject: Re: [lwip-users] disconnect - connect delay
Date: Fri, 1 Apr 2011 12:33:01 +0200

>> Close the listening socket once you've got one established.  Reopen it
>> when you're ready to listen again.

Is it possible?

>From documentation, abuot tcp_listen_with_backlog function:
(...) Setting the connection to LISTEN is an irreversible process.

> Or even easier you could probably just leave the listening socket open
> and set your accept callback to NULL until you're ready to handle the
> next one.  e.g. in HTTP_connection_established call:
>
>  tcp_accept(pcb, NULL)
>
> where pcb is the listening PCB above, not the new connection's pcb.

I've tried this. Even then accept callback is NULL new connection is
made, but I have no control of it.
After disconnect I link accept callback to my function but nothing happends.

Tomasz



reply via email to

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