Re: Socket Callbacks
Re: Socket Callbacks
- Subject: Re: Socket Callbacks
- From: Vincent Lubet <email@hidden>
- Date: Thu, 13 Feb 2003 06:31:01 -0800
Brian,
Why don't just continue to use select() that is fully supported on Mac
OS X all along with the rest of the Sockets and Un*x APIs?
Vincent
On Wednesday, February 12, 2003, at 06:04 PM, Brian Victor wrote:
I am porting unix socket software to OSX. Currently, the other unix
platforms use GTK's select() based callback mechanism to alert the
program to socket events, which the program handles using the standard
unix socket interface. I'm looking for a way to do something similar
under OSX.
My current attempt at this uses CFSocket. However, it's hitting the
callbacks at unexpected times and the unix interfaces are behaving
oddly. I suspect that may be because CFSocket handles sockets on its
own, according to
http://lists.apple.com/archives/macnetworkprog/2002/Sep/06/
cfsocketquestions.002.txt
Is there some interface available on OSX that allows me to use
callbacks
only for knowing about events (input, connection received, connection
made, write), allowing me to use the existing unix code for everything
else?
_______________________________________________
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.