Re: BSD TCP Programming on iPad
Re: BSD TCP Programming on iPad
- Subject: Re: BSD TCP Programming on iPad
- From: Keith Duncan <email@hidden>
- Date: Wed, 27 Apr 2011 18:41:53 +0100
> The one subtle complication here is that NSStream does not currently
> support remote connections on iOS without modification. Fortunately,
> Apple provides documentation on how to get around this with a minimal
> amount of CFNetwork to setup the stream:
>
> http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/Streams/Articles/NetworkStreams.html
> http://developer.apple.com/library/ios/#qa/qa1652/_index.html
>
> This would then give you all the NSStream Objective-C goodness, which
> comports with the principle of using the highest level constructs
> available that meet all your needs.
You could also look at defining your own NSURLProtocol subclass if it's abstraction fits your problem domain. This allows your code to use NSURLRequest and NSURLConnection, encapsulating your network I/O underneath them nicely.
Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden