Re: iOS4: UDP sockets in the background
Re: iOS4: UDP sockets in the background
- Subject: Re: iOS4: UDP sockets in the background
- From: Kyle Sluder <email@hidden>
- Date: Fri, 25 Jun 2010 10:55:19 -0700
On Thu, Jun 24, 2010 at 10:10 PM, Angelica Grace Tanchico
<email@hidden> wrote:
> Also according to document:
> In order for your application to maintain a persistent connection
> while it is in the background, you must configure the sockets used to
> communicate with your VoIP service. In iPhone OS, most sockets are
> managed using higher-level constructs such as streams. As a result,
> configuration of a socket to support VoIP occurs through the
> higher-level interfaces. The only thing you have to do beyond the
> normal configuration is add a special key that tags the interface as
> being used for a VoIP service.
>
> But how can iOS4 support voip when the app uses bsd sockets (not the high level socket interface)?
> Is there any way where I don't need to change my network implementation to high level sockets?
The documentation Robert quoted seems to imply that multitasking
doesn't result in your sockets behaving any differently than they
might under other normal circumstances. Which means that you should be
perfectly okay with using BSD sockets. The documentation you've quoted
seems to me to simply state that the higher-level networking
constructs properly handle socket errors, which means they correctly
deal with app backgrounding.
Have you tried using BSD sockets and gotten any bad results? There's
no point going around and around in circles without actually trying
the code.
--Kyle Sluder
_______________________________________________
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