|
From: | address@hidden |
Subject: | Re: [lwip-users] calling tcp_write outside tcp_accept callback |
Date: | Thu, 16 Oct 2008 17:07:53 +0200 |
User-agent: | Thunderbird 2.0.0.17 (Macintosh/20080914) |
Vojtech Janasek wrote:
As far as I can think, you can call tcp_write virtually from everywhere, not only from one of the callback. However, there is one limitation: in multithreading environments, all the raw API functions may only be called from the tcpip_thread since the raw API is not locked against concurrent access. From your description it seems you are doing exactly this, which would explain why the stack locks up at some point.Can I call tcp_write function outside callback functions tcp_accept() and tcp_poll()? (keeping in mind it isn't reentrant)
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |