Hi Simon,

thanks, the callback solution works! :-)

BR
Marco

-----Original Message-----

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.



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

Reply via email to