Re: Need help in Mac Networking
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