Re: waking and listening
Re: waking and listening
- Subject: Re: waking and listening
- From: Michael Brian Bentley <email@hidden>
- Date: Sun, 08 Jun 2014 15:42:00 -0700
According to the tech note, what I have is a UDP data socket, not a
listener, so I need to make a vocabulary adjustment.
If iOS leaves the socket running, I'm fine. If iOS closes the socket,
detecting that would be nice, but I don't think I'm seeing any errors or
status. I've added code to close and reopen the socket.
Thanks,
-Mike
On 6/8/14, 10:18 AM, Quinn "The Eskimo!" wrote:
On 6 Jun 2014, at 10:30, Michael Brian Bentley <email@hidden> wrote:
When the app is backgrounded and then foregrounded, the listener usually continues to work. When I sleep/lock the iPad, and then wake and unlock the iPad, when the app foregrounds, the listener often stops listening.
This is caused by your socket's resources being reclaimed. The advice that Jens posted is spot on, but if you want to know more about this read Technote 2277 "Networking and Multitasking".
<https://developer.apple.com/library/ios/#technotes/tn2277/_index.html>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden