Re: CFSocket example?
Re: CFSocket example?
- Subject: Re: CFSocket example?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 4 Sep 2002 10:00:00 -0700
On Tuesday, September 3, 2002, at 10:08 PM, Glenn wrote:
I started out using CFSocket, but
then moved to CFStream once I figured out what it was doing.
CFSocket and CFStream work together to provide layered abstractions.
CFSocket's purpose is to allow a BSD socket to serve as a run loop
source. CFStream provides a stream abstraction layered on top of
various underlying facilities, among them CFSocket, but naturally only
for stream-oriented sockets.
You would want to use CFSocket directly if you were using a UDP socket,
or if you wanted direct control at the socket level. You would be
likely to use CFStreams for most TCP connections. IRC is a simple
text-based TCP protocol, so you would be likely to use the higher-level
abstraction, CFStream.
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.