• 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: OS X Socket Performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X Socket Performance


  • Subject: Re: OS X Socket Performance
  • From: Paul Ferguson <email@hidden>
  • Date: Mon, 9 Sep 2002 09:16:26 -0700

On Monday, September 9, 2002, at 01:47 AM, Chris K. wrote:

Hi,

Based on some discussion on the Cocoa dev list, there are apparently three options for creating socket based applications on OS X: use an objective-c wrapper around BSD sockets (like SmallSockets), create a BSD socket in straight C, or use CFNetwork.

My question is this: which of these options offers the highest performance? My guess is that working in straight C with BSD sockets would be, but I have a strong desire to stick with Apple's APIs in order to leverage any future enhancements to CFNetwork.

If you look at the SmallSockets source code, you'll see that it is a very thin wrapper around the BSD socket API, and imposes little or no overhead beyond what you would typically do in a Cocoa app anyway (such as using NSData objects to manage packet data, using NSException for error handling, etc.)

Using straight C may give you a performance edge, but at the expense of tighter integration with your Objective C code.

<fergy/>
_______________________________________________
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: 
 >OS X Socket Performance (From: "Chris K." <email@hidden>)

  • Prev by Date: RE: OS X Socket Performance
  • Next by Date: Re: OS X Socket Performance
  • Previous by thread: OS X Socket Performance
  • Next by thread: Re: OS X Socket Performance
  • Index(es):
    • Date
    • Thread