[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] How to check connection
From: |
Sylvain Rochet |
Subject: |
Re: [lwip-users] How to check connection |
Date: |
Tue, 28 Jun 2016 13:48:08 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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
signature.asc
Description: Digital signature