Hi,
Thanks for your reply.

The most disturbing thing for me is your NO to my question about tcp_*
thread safe. In other words it means that all processing should be done in
tcp callback ONLY as this is the only code running in tcp thread context !?

Right now I did something like this:

/* Receive Callback (tcp thread)*/
...
xQueueSend( queue_srv, &my_data, 0 );

/* Server Thread (My server thread) */
xQueueReceive( queue_srv, &my_data ... );
/* Processing */
...
tcp_write( ... );
tcp_output( .... );

If tcp_write and tcp_output are not thread safe I do not know how to
implement server that requires long processing.




--
View this message in context: 
http://lwip.100.n7.nabble.com/Advanced-lwip-raw-API-questions-tp22050p22057.html
Sent from the lwip-users mailing list archive at Nabble.com.

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

Reply via email to