lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] netconn_bind - How to "unbind"?


From: Krzysztof Wesołowski
Subject: Re: [lwip-users] netconn_bind - How to "unbind"?
Date: Fri, 16 Jan 2015 22:06:47 +0100

On Fri, Jan 16, 2015 at 3:29 PM, TJO <address@hidden> wrote:
Hi

Im using lwip 1.4.1.
I use TCP and is the listen server using netconn API.
Only one connection allowed.

I create a NetConn
I do a netconn_bind
Then a netconn_listen
Finally I call netconn_accept

But, how do I handle a client reconnect in the case the client don't
disconnect the correct way, but just connects again?
Then I cant do a network_bind for 2 minutes. All in sync with the
documentation. (In use error).

Is there any way I can do this faster in case a client doen't behave??

We configured netconn_accept to timeout if no connection is pending, and we call it periodically - if newer client wants to connect we disconnect previous one - this solves issues with reconnects after errors in communication.

Regards,
Krzysztof Wesołowski 

reply via email to

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