[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Socket read/write and threads
From: |
Yoav Nissim |
Subject: |
Re: [lwip-users] Socket read/write and threads |
Date: |
Mon, 11 Jan 2010 10:55:45 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
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)
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).
>
> Nicolas
>>
>> Simon
>>
>>
>> _______________________________________________
>> 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
>
>
--
Yoav Nissim
Software Engineer, Software Tools Division
Jungo Software Technologies
Email: address@hidden
Web: http://www.jungo.com
Phone: +972-74-7212138
Fax: +972-74-7212122
Mobile: +972-54-2271315
- [lwip-users] Socket read/write and threads, Nicolas Pinault, 2010/01/08
- Re: [lwip-users] Socket read/write and threads, address@hidden, 2010/01/08
- Re: [lwip-users] Socket read/write and threads, Nicolas Pinault, 2010/01/11
- Re: [lwip-users] Socket read/write and threads,
Yoav Nissim <=
- Re: [lwip-users] Socket read/write and threads, Nicolas Pinault, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Simon Goldschmidt, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Nicolas Pinault, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Yoav Nissim, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Nicolas Pinault, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Yoav Nissim, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Nicolas Pinault, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Yoav Nissim, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Simon Goldschmidt, 2010/01/11
- Re: [lwip-users] Socket read/write and threads, Yoav Nissim, 2010/01/11