Re: Sending data with CFSocket
Re: Sending data with CFSocket
- Subject: Re: Sending data with CFSocket
- From: Quinn <email@hidden>
- Date: Tue, 1 Feb 2005 06:54:07 +0000
At 12:23 -0700 21/1/05, Ryan M Joseph wrote:
I am working a simple client/server application using CFSocket (for
my first time) and ran into some problems when attempting sending
data. I am not very experienced with sockets but I think I setup the
the design as CFSocket intended. The program gets quite far before
the problem so I will omit some details.
* First I setup CFSocketCreate (using AF_INET, SOCK_STREAM,
IPPROTO_TCP, kCFSocketDataCallBack) for the server.
As this is a listening socket, you should be setting
kCFSocketAcceptCallBack here. See the comments related to this
constant at the top of "CFSocket.h". Also, see the Echo sample code
"/Developer/Examples/Networking/Echo/".
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden