• 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: Raw Sockets using CF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Raw Sockets using CF


  • Subject: Re: Raw Sockets using CF
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 22 Dec 2003 10:01:57 -0800

On Dec 19, 2003, at 4:56 PM, Mark Grimes wrote:

Is it possible to use CFSocket for developing a raw socket based application? I would prefer to use the Core Foundation for networking as I would like to simulate connection based sockets but maintain full control of the TCP/IP headers. In turn I would like to be able to use CFRunLoop to control these network events.

The basic purpose of CFSocket is to allow sockets to serve as run loop sources. Instead of using select() in a separate thread, you let CFSocket do the select() for you and get callbacks in the run loop when select() fires. So, if you would otherwise use select(), you can use CFSocket--provided you stick to the read and/or write callbacks.

Douglas Davidson
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Raw Sockets using CF (From: Mark Grimes <email@hidden>)

  • Prev by Date: DLIL linking error
  • Next by Date: Re: Kernel Panic 10.2.3 with CFSocketInvalidate & Raw Ethernet
  • Previous by thread: Raw Sockets using CF
  • Next by thread: Kernel Panic 10.2.3 with CFSocketInvalidate & Raw Ethernet
  • Index(es):
    • Date
    • Thread