• 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: CFsockets vs. BSDsockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFsockets vs. BSDsockets


  • Subject: Re: CFsockets vs. BSDsockets
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 20 Jan 2006 10:12:41 -0800


On Jan 20, 2006, at 10:05 AM, Fredrik H. Larsen wrote:

I'm just wondering what the main difference is, and if I should use CFsockets over BSDsockets?

In addition, is there a way to force terminate the open ports related to an application?

I'm struggling alot with "bind error: socket already in use"



It isn't really a choice of one or the other--CFSocket is a thin wrapper intended primarily to allow BSD sockets to serve as run loop sources.  Most socket functionality is left to the BSD socket; CFSocket is focused on what is necessary to integrate with CFRunLoop.  As for your other question, you probably need to use SO_REUSEADDR.

Douglas Davidson

 _______________________________________________
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

References: 
 >CFsockets vs. BSDsockets (From: "Fredrik H. Larsen" <email@hidden>)

  • Prev by Date: CFsockets vs. BSDsockets
  • Next by Date: Re: client/server communication using CFSocket (no one listening to port 2222)
  • Previous by thread: CFsockets vs. BSDsockets
  • Next by thread: CFReadStream Error -1
  • Index(es):
    • Date
    • Thread