Hi Danil,

On Tue, Jun 28, 2016 at 05:41:54PM +0600, Danil Kaykov wrote:
> Hi all.
> 
> I need correctway to check state of the connection, and if it is
> aborted/disconnected/etc, reconnect.

You should use TCP keepalive, lwIP supports that.


> Now I do it with the help of test sending some data.
> 
> In a separate thread ...

You are not allowed to do that, a socket/netconn PCB cannot be shared 
among threads.


Sylvain

Attachment: signature.asc
Description: Digital signature

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to