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

Reply via email to