Re: Simultaneous read() and write() on same TCP/IP socket
Re: Simultaneous read() and write() on same TCP/IP socket
- Subject: Re: Simultaneous read() and write() on same TCP/IP socket
- From: Rudy Richter <email@hidden>
- Date: Thu, 16 Dec 2010 12:25:12 -0500
You might want to take a look at Mike Ash's implementation: https://github.com/mikeash/MAAsyncIO
-rudy
On Dec 16, 2010, at 12:09 PM, Jonathon Kuo wrote:
> On Dec 16, 2010, at 1:57 AM, Quinn The Eskimo! wrote:
>>
>> On 16 Dec 2010, at 00:43, Jonathon Kuo wrote:
>>
>>> Is there a certain paradigm you had in mind with respect to using non-blocking sockets with GCD?
>>
>> You need to research GCD "sources", which are basically a replacement for select(). For example, you can set up a source so that it runs a block on a queue every time a descriptor becomes readable.
>
> Wow, that's totally cool. Thanks for the direction. I'm on it!
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden