[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.
Thanks,
Dave
- [lwip-users] sys_arch_mbox_fetch() peek,
David Shmelzer <=
- Re: [lwip-users] sys_arch_mbox_fetch() peek, Simon Goldschmidt, 2009/10/06
- [lwip-users] conn->err = ERR_CLSD in api_lib.c, David Shmelzer, 2009/10/06
- Re: [lwip-users] conn->err = ERR_CLSD in api_lib.c, Kieran Mansley, 2009/10/07
- RE: [lwip-users] conn->err = ERR_CLSD in api_lib.c, David Shmelzer, 2009/10/07
- RE: [lwip-users] conn->err = ERR_CLSD in api_lib.c, David Shmelzer, 2009/10/07
- RE: [lwip-users] conn->err = ERR_CLSD in api_lib.c, Kieran Mansley, 2009/10/08
- RE: [lwip-users] conn->err = ERR_CLSD in api_lib.c, David Shmelzer, 2009/10/13
- [lwip-users] TCP payload is doubled, David Shmelzer, 2009/10/13
- Re: [lwip-users] TCP payload is doubled, David Empson, 2009/10/13
- RE: [lwip-users] TCP payload is doubled, David Shmelzer, 2009/10/14