• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [CFSocket] Invalidating a CFSocketRef revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >[CFSocket] Invalidating a CFSocketRef revisited (From: Stéphane Sudre <email@hidden>)
 >Re: [CFSocket] Invalidating a CFSocketRef revisited (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: [CFSocket] Invalidating a CFSocketRef revisited (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: [CFSocket] Invalidating a CFSocketRef revisited
  • Next by Date: Problem w. FTP port 21
  • Previous by thread: Re: [CFSocket] Invalidating a CFSocketRef revisited
  • Next by thread: Problem w. FTP port 21
  • Index(es):
    • Date
    • Thread