• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFSocket example?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: CFSocket example? (From: Glenn <email@hidden>)

  • Prev by Date: Re: CFSocket example?
  • Next by Date: NSL Manager & AFP
  • Previous by thread: Re: CFSocket example?
  • Next by thread: RE: CFSocket example?
  • Index(es):
    • Date
    • Thread