Thank you for your information, is there some simple way how to do this? I tried to wait for new data in callback tcp_accept() - it isn't perfect but it seems to work.

[EMAIL PROTECTED] napsal(a):
Vojtech Janasek wrote:
Can I call tcp_write function outside callback functions tcp_accept()
and tcp_poll()? (keeping in mind it isn't reentrant)
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.

Simon


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users



--
www.janascard.cz
Vojtěch Janásek
Janascard
tel. 222315591, 732346758


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to