Re: iOS4: UDP sockets in the background
Re: iOS4: UDP sockets in the background
- Subject: Re: iOS4: UDP sockets in the background
- From: Robert Vojta <email@hidden>
- Date: Fri, 25 Jun 2010 00:19:04 +0200
On 23.6.2010, at 20:15, Gerd Knops wrote:
> I have been doing that without a problem since early iOS 3, so no reason to expect it would stop working in iOS4.
FYI, doc quote ...
Cancel any Bonjour-related services before being suspended. When your application moves to the background, and before it is suspended, it should unregister from Bonjour and close listening sockets associated with any network services. A suspended application cannot respond to incoming service requests anyway. Closing out those services prevents them from appearing to be available when they actually are not. If you do not close out Bonjour services yourself, the system closes out those services automatically when your application is suspended.
Be prepared to handle connection failures in your network-based sockets. The system may tear down socket connections while your application is suspended for any number of reasons. As long as your socket-based code is prepared for other types of network failures, such as a lost signal or network transition, this should not lead to any unusual problems. When your application resumes, if it encounters a failure upon using a socket, simply reestablish the connection._______________________________________________
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