• 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: Mon, 25 Apr 2011 16:42:02 +0100

On 25 Apr 2011, at 16:00, 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.

If I recall correctly, using the socket() API directly won't bring the WWAN radio online, you need to use CoreFoundation API or higher for this to happen.

The CFNetwork adds very little on top of BSD sockets, the biggest feature being CFRunLoop integration, where the system will create and manage a select() (or equivalent) loop for you.

Take a look at CFSocket.h to get started.

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

  • Follow-Ups:
    • Re: BSD TCP Programming on iPad
      • From: Bing Li <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>)

  • Prev by Date: Re: @class create a new instance?
  • Next by Date: Re: @class create a new instance?
  • Previous by thread: Re: BSD TCP Programming on iPad
  • Next by thread: Re: BSD TCP Programming on iPad
  • Index(es):
    • Date
    • Thread