Jonathan,
First of all - thanks !
How could I prevent from waiting forever ? I imagine by setting the
conn->recv_timeout. Is there
a api call for this or can I access it directly just before calling
netconn_recv() ?
marko
Jonathan Larmour wrote:
Marko Panger wrote:
HI,
I'm using lwip1.3.0 in a RTOS environment with LWIP_SO_RCVTIMEO == 1 and
the netconn api.
Whe I call the netconn_recv the function blocks with timeout 0 (forever)
on a mailbox. Now, how do I shut down
the connection form my side ? I've tried to call netconn_close() which
seems to post a semaphore but no task
is pending on it.
Am I doing something wrong ?
Sort of :-). Don't wait forever if it's not ok to wait forever! There is at
present no way to shut something like that down for UDP.
Maybe something could be added in netconn_delete (netconn_close is specific
to TCP) and/or netconn_disconnect and/or netconn_free. But there isn't
anything there now.
Jifl
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users