[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Possible to have netconn_recv unblocking?
From: |
Dany Thiffeault |
Subject: |
[lwip-users] Possible to have netconn_recv unblocking? |
Date: |
Fri, 2 Oct 2009 11:44:40 -0400 |
Hey,
I was testing the stability of my system, so I disconnected the Ethernet cable from my lwIP device and reconnected it. I found out that the connection wasn't re-initializing itself. I foudn out that my task is blocked in netconn_recv() indefinatly.
I absolutly need to be able to detect a network fault and go back into connection accepting state. I searched around and found threads about this exact question, but the replies were all: swith to raw API.
This is not good for me, since I'm using a multi-task system with RTOS, sequential API.
My LWIP_SO_RCVTIMEO is 0 currently, and according to the code, it looks like I could put this to 1 and not block. But I just want to use it on the netconn_recv() call, no others...
Any advice here? Is it the way to go?
Thanks!
- [lwip-users] Possible to have netconn_recv unblocking?,
Dany Thiffeault <=