CFSocket questions
CFSocket questions
- Subject: CFSocket questions
- From: "Edward Fink" <email@hidden>
- Date: Fri, 06 Sep 2002 12:23:27 -0400
A few days ago I had posted asking for some examples showing CFSocket. I want to thank everyone who game me examples and gave me suggestions on where to look.
I have a few specific questions now:
1.) I have read that if I use CFSocketConnectToAddress with a timeout of -1 it will connect in the background. And...If it connects in the background I can add the callback "kCFSocketConnectCallBack" to my already existing callback of "kCFSocketDataCallBack". Is this correct? And if so how is this accomplished?
am using code like the following which adds the Data callback:
CFSocketRef s = CFSocketCreate(NULL, PF_INET, SOCK_STREAM, IPPROTO_TCP,
kCFSocketDataCallBack, whatToDo, NULL);
How do I add the second callback???
2.) Can I reference the native socket directly while using CFSocket? So for example using the native socket's send(). If so how do I go about this and is there any benefit/downside to doing this?
Ed Fink...
_______________________________________________
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.