[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] sys_arch_mbox_fetch() peek

From: David Shmelzer
Subject: [lwip-users] sys_arch_mbox_fetch() peek
Date: Mon, 5 Oct 2009 17:25:50 -0400

Simon, or whoever,

I want to call netconn_recv without blocking to check for a message.  
In a previous message you said:
"If you are using lwIP 1.3.0 or newer (CVS), to achieve what you want,
have a look into the netconn_recv() function: when you have
LWIP_SO_RCVTIMEO defined to 1, sys_arch_mbox_fetch() gets called with a
timeout defined in the netconn (conn->recv_timeout), an int which you
can set to whatever you want, e.g. set it to -1 and let
sys_arch_mbox_fetch() return immediately if timeout is -1."

So, does implementing this create a way to peek for a message?
What should I return as the 'timespent' value?
I'm using lwIP 1.3.0.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]