Re: Getting started communicating with AFP -- on the right track?
Re: Getting started communicating with AFP -- on the right track?
- Subject: Re: Getting started communicating with AFP -- on the right track?
- From: Jens Alfke <email@hidden>
- Date: Mon, 6 Jul 2009 21:27:06 -0700
On Jul 6, 2009, at 9:02 AM, Jesse Armand wrote: I found NSConnection as a higher level API for this.
Actually, NSConnection is only for use with Distributed Objects, not for general networking. :(
Foundation unfortunately doesn't have any good high-level API for TCP connections. You end up having to use a mixture of NSStream and NSSocket, with some CFNetwork and POSIX calls to glue stuff together. Kind of messy. (See Apple's "CocoaEcho" sample code for an example of this.) I wrote a library called MYNetwork that provides such an API.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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