• 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: UDP sockets and Cocoa abstractions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UDP sockets and Cocoa abstractions


  • Subject: Re: UDP sockets and Cocoa abstractions
  • From: Andrew White <email@hidden>
  • Date: Tue, 08 Feb 2005 18:15:40 +1100


Kevin Ballard wrote:
On Feb 7, 2005, at 9:14 PM, Andrew White wrote:

Thanks for the pointer. I couldn't find CFSocket under 'Cocoa:Networking', but it was under 'Core Foundation:Networking'.

CF stands for Core Foundation.

Let me rephrase that. I looked under Cocoa:Networking and saw only Streams, CFNetwork, and some other stuff, none of which (obviously) discussed accessing UDP sockets. Since I'm writing under Cocoa, I tend to avoid CF where possible.


I don't know of sample code, but I think you just need to create a
> CFRunLoopSource for it and add it to the underlying CFRunLoop behind
> NSRunLoop.

So get my run loop (currentRunLoop), get the CFRunLoop (getCFRunLoop), and add my CFSocket as documented in the CFSocket Reference?

Do I also need to add code to clean up this CFRunLoopSource when I clean up my socket, or is this done automatically?


Thanks

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments are confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: UDP sockets and Cocoa abstractions
      • From: Kevin Ballard <email@hidden>
References: 
 >Re: UDP sockets and Cocoa abstractions (From: Douglas Davidson <email@hidden>)
 >Re: UDP sockets and Cocoa abstractions (From: Andrew White <email@hidden>)
 >Re: UDP sockets and Cocoa abstractions (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: UDP sockets and Cocoa abstractions
  • Next by Date: Re: UDP sockets and Cocoa abstractions
  • Previous by thread: Re: UDP sockets and Cocoa abstractions
  • Next by thread: Re: UDP sockets and Cocoa abstractions
  • Index(es):
    • Date
    • Thread