Have you looked at the sample code?
https://developer.apple.com/library/ios/#samplecode/SimpleNetworkStreams/Listings/Read_Me_About_SimpleNetworkStreams_txt.html%23//apple_ref/doc/uid/DTS40008979-Read_Me_About_SimpleNetworkStreams_txt-DontLinkElementID_8


On Apr 25, 2011, at 10:00 AM, Bing Li wrote:

> Dear Marcus,
> 
> Could you tell me which features are not available when using BSD sockets on
> iOS? Although I would like to use CFNetwork APIs, I cannot find enough
> materials to learn how to use them. The guide from apple.com is too limited
> to be useful. Could you provide me with other resources about CFNetwork
> APIs.
> 
> Thanks so much!
> LB
> 
> On Mon, Apr 25, 2011 at 2:05 PM, Marcus Karlsson <m...@acc.umu.se> wrote:
> 
>> Dear all,
>>> 
>>> I am planning to program with BSD TCP on iPad. The motivation to do that
>>> is that a P2P model is expected. I think the network techniques, such as
>>> Web Services and Push Notification, supported by Cocoa do not meet the
>>> requirements.
>>> 
>>> My experiences on iPad are not sufficient. I am not sure if the above
>>> opinion is correct?
>>> 
>> 
>> It sounds correct. However, it's recommended that you don't use BSD sockets
>> directly on iOS since certain networking features won't be available. If you
>> want to work on the socket level you should instead use the CFNetwork APIs.
>> 
>> Marcus
>> 
> _______________________________________________
> 
> 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/jjoyce%40apple.com
> 
> This email sent to jjo...@apple.com

_______________________________________________

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