lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Call tcp_close() out of tcp_recv()-context?


From: Sergio R. Caprile
Subject: Re: [lwip-users] Call tcp_close() out of tcp_recv()-context?
Date: Mon, 7 Sep 2015 11:23:36 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

There is no "possibly" here, if you call lwIP RAW API functions from
within an interrupt, you can't also call them from the main thread or
other nested interrupts.
All calls to lwIP RAW API functions must happen from within the same
context, they can't interrupt themselves.
Check the examples in the contrib tree.
Read the wiki http://lwip.wikia.com/wiki/Raw/native_API
You can call tcp_close from your my_recv. Make sure your "my_send" (if
any)is not interruptable by your my_recv

-- 




reply via email to

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