Re: [CFSocket] Invalidating a CFSocketRef revisited
Re: [CFSocket] Invalidating a CFSocketRef revisited
- Subject: Re: [CFSocket] Invalidating a CFSocketRef revisited
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Fri, 21 Jan 2011 11:42:59 +0000
On 21 Jan 2011, at 11:35, Stéphane Sudre wrote:
> Via the default CFMessagePort mechanism.
Right. So you should:
1. dream up a custom run loop mode (I typically recommend reverse DNS notation for this)
2. schedule your run loop source (created with CFMessagePortCreateRunLoopSource) in that custom mode
3. pass that custom mode to CFMessagePortSendRequest
This will ensure that, while waiting for a message port response, only your message port's callback can run.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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