Re: Raw Sockets using CF
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.