• 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: Need help in Mac Networking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help in Mac Networking


  • Subject: Re: Need help in Mac Networking
  • From: Troy Dawson <email@hidden>
  • Date: Sat, 2 Oct 2004 14:07:06 -0700

On Oct 2, 2004, at 1:38 PM, Frederick Cheung wrote:
Open transport is a deprecated API, although it is still supported. BSD sockets is the native way for tcp/ip on Mac OS X. There are various layers put on top of this, which abstract varying amounts of the socket stuff away and in some cases the protocols on top of that (eg FTP/HTTP) for example CFSocket, CFStream or CFNetwork. You might want to check out the headers for these, and also apple's networking code samples (http://developer.apple.com/samplecode/Networking/index.html)

If a person has the time to invest (into learning Objective-C), I think using Foundation's networking stuff is a better long-term solution.

Eg. Here's the code to read a web page into memory:

return [NSString stringWithContentsOfURL: [NSURL URLWithString: @"http://insert.url/here.txt"]];
 _______________________________________________
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: 
 >Re: Need help in Mac Networking (From: Frederick Cheung <email@hidden>)

  • Prev by Date: Re: Need help in Mac Networking.
  • Next by Date: Re: Need help in Mac Networking.
  • Previous by thread: Re: Need help in Mac Networking
  • Next by thread: apcupsd
  • Index(es):
    • Date
    • Thread