I found this topic:https://lists.gnu.org/archive/html/lwip-users/2013-03/msg00015.html
Where Sylvain wrote:
Yes, this is the issue, a UDP or TCP control block through netconn must NOT be used from different threads.
However, I must agree, lwIP documentation is probably not clear enough about what is (dis)allowed in a multi-threaded context.
I tink that is my problem here. I am using netconn api. One thread reads packets (created after accept, in server model) but others write in the same connection.
Please, could be it my problem ?
I saw the "netconn_new_with_callback" method, but my "netconn_recv" is blocking. Is it possible?
Thank you very much.