Socket Callbacks
Socket Callbacks
- Subject: Socket Callbacks
- From: Brian Victor <email@hidden>
- Date: Wed, 12 Feb 2003 21:04:12 -0500
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?
Thanks in advance!
--
Brian
_______________________________________________
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.