> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to