"Marco Jakobs" <[email protected]> wrote:
> to receive data from some connections I use the netconn receive timeout to
> have nonblocking reception.
> [..]
> Is there any way doing this in LwIP 1.4.0?

Yes. Instead of using receive timeout, use the callback that can be passed to 
netconn_new_with_callback_*(). This callback function will be called in 
tcpip_thread() when there is new data to be received. For an example how to use 
it, have a look at the socket select implementation.

Using a receive timeout of '0' (effectively calling 'tryfetch' on the mbox) 
seems to be missing, but is less possibly effective than the other solution, 
anyway.

Simon

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

Reply via email to