|Subject:||Re: [lwip-users] Socket read/write and threads|
|Date:||Mon, 11 Jan 2010 10:15:17 +0100|
|User-agent:||Thunderbird 188.8.131.52 (Windows/20090812)|
I was already thinking of using select but I can't see how to use it in this situation.Pardon me for barging in... I have encountered the same issue about a week or two ago. Using select() would be the natural choice for performing multiple non-blocking operations. You can either: 1. Use select() in a single thread to perform both Rx & Tx (recommended) 2. Keep Rx and Tx threads locked and waiting on a select running in another thread (in essence adding the locking mechanism that lwIP does not support)
Waiting on receive is ok for me. Waiting on transmit is the problem.
Can you provide a small excerpt of code ?
HTH, Yoav. On 11/01/10 9:46 AM, Nicolas Pinault wrote:address@hidden a écrit :Nicolas Pinault wrote:Is this a threading problem ?Yep, using a socket from more than one thread at the same time is currently not supported.Ok. So, what do you recommend to asynchronously send and receive data (with a socket). NicolasSimon _______________________________________________ lwip-users mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users_______________________________________________ lwip-users mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
|[Prev in Thread]||Current Thread||[Next in Thread]|