• 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: BSD TCP Programming on iPad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Marcus Karlsson <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Keith Duncan <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Conrad Shultz <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: BSD TCP Programming on iPad
  • Next by Date: iOS Version Install Base
  • Previous by thread: Re: BSD TCP Programming on iPad
  • Next by thread: Re: BSD TCP Programming on iPad
  • Index(es):
    • Date
    • Thread