WWDC and iPhone 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



They are not able to maintain UDP sockets in the background. I talked to several iOS networking engineers at WWDC about this issue. They stated that we could file a "bug". I don't plan to do this, instead we are switching to TCP.

One other piece of information that isn't covered in Apple's multitasking doc is that if you install a SCNetworkReachability observer you will be notified when the network interface changes from wifi to cell data and visa-versa even if you are in the background. I haven't personally verified this...


Best regards,
Darald


On Jun 22, 2010, at 7:20 AM, Angelica Grace Tanchico wrote:

> Hi Darald,
> 
> "iOS is able to maintain a tcp socket when the app is suspended (in the background)" 
> 
> -> Can iOS maintain UDP socket when app is suspended o not (that's why you need change to tcp socket in you server and client)?
> 
> From: dtrinka@xxxxxxxxx
> To: pjsip at lists.pjsip.org
> Date: Tue, 22 Jun 2010 06:26:41 -0400
> CC: pjsip at lists.pjsip.org
> Subject: Re: WWDC and iPhone 4
> 
> I'm not sure yet, but doing this cleanly would be my approach. We hope to look into this in a couple of weeks - after we update our server to use tcp.
> 
> On Jun 22, 2010, at 4:48 AM, "Fabio Pietrosanti (naif)" <lists at infosecurity.ch> wrote:
> 
> Hi Darald,
> 
> are you wrapping all the TCP and TLS related functions of PJSIP to the standard iOS ones?
> 
> A clean layer a-la'-pjlib way would be really welcome!
> 
> Fabio
> 
> On 21/06/10 19.25, Darald Trinka wrote:
> 
> iOS is able to maintain a tcp socket when the app is suspended (in the background). This allows an app to receive incoming SIP packets. I've only done a cursory look into this, but it does appear that PJSIP will need to be changed to support this. Instead of using bsd sockets, NSInputStream or CFReadStreamRef will need to be used. We haven't dug into this yet, as our client and server use UDP for SIP transport - we are updating this now.
> 
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now._______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100622/edd71a9d/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux