• 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: iOS4: UDP sockets in the background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >iOS4: UDP sockets in the background (From: Angelica Grace Tanchico <email@hidden>)
 >Re: iOS4: UDP sockets in the background (From: Gerd Knops <email@hidden>)
 >Re: iOS4: UDP sockets in the background (From: Robert Vojta <email@hidden>)
 >RE: iOS4: UDP sockets in the background (From: Angelica Grace Tanchico <email@hidden>)

  • Prev by Date: Re: -enclosingScrollView returns nil when receiver is a descendant of the clip view
  • Next by Date: Re: Read "File Sharing" status
  • Previous by thread: RE: iOS4: UDP sockets in the background
  • Next by thread: Auto-hide the window
  • Index(es):
    • Date
    • Thread