Hi all.
I need correctway to check state of the connection, and if it is
aborted/disconnected/etc, reconnect.
Now I do it with the help of test sending some data.
In a separate thread ...
for( ;; )
{
// check connection...
/*while(netconn_write(conn, (void*)"1", 2, NETCONN_COPY)!=ERR_OK)
{
err = netconn_connect(conn, &DestIPaddr, 8080);
if(err!=ERR_OK) continue;
}*/
if (netconn_recv_tcp_pbuf(conn, &pbuf) == ERR_OK)
{
// some processing....
pbuf_free(pbuf);
}
}
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users