[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Netconn API - receive check withput 1ms delay
From: |
Marco Jakobs |
Subject: |
Re: [lwip-users] Netconn API - receive check withput 1ms delay |
Date: |
Wed, 18 Jul 2012 12:13:33 +0200 |
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.