• 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: UDP SOCKETS!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UDP SOCKETS!!


  • Subject: Re: UDP SOCKETS!!
  • From: j o a r <email@hidden>
  • Date: Mon, 14 Feb 2005 15:19:19 +0100


On 2005-02-14, at 14.52, Sherm Pendley wrote:

for a new programmer which one would be good and what are the pros and cons?
If you've already "worked extensively" with the BSD sockets API, one major pro to using it would be that you already know it pretty well, so there's essentially zero learning curve.

One really good thing about using the higher-level API:s is that they are often integrated in the run-loop, so you don't have to invent your own ways of getting information about network events to your application main thread.


If you're going to integrate this in a GUI app I guess you would create some sort of wrapper around the network code, and in that case it would probably be better to use one of the existing wrappers - to avoid re-inventing the wheel, and to avoid having to make all the same mistakes, bug fixes, regressions, et.c. that I'm sure went into the creation of the existing wrappers.

Using a CF / NS / ObjC based API also makes it much easier to get the memory management right. But that's of course a very subjective opinion of mine.

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >UDP SOCKETS!! (From: apr trainees <email@hidden>)
 >Re: UDP SOCKETS!! (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Formatting integer value
  • Next by Date: request a webpage from cocoa
  • Previous by thread: Re: UDP SOCKETS!!
  • Next by thread: Re: UDP SOCKETS!!
  • Index(es):
    • Date
    • Thread