I have an app that establishes multiple TCP connections. If the user quits the app, I'd like to shut all those connections gracefully (i.e., conduct a bit of protocol) rather than just close them abruptly. To most properly handle this, I should even wait for the servers' responses. I am currently initiating the graceful shutdown in applicationWillTerminate but... how should I best wait for the connections to close: spin in a loop and check them? and set a timer for a timeout? Or, is there another way to more properly handle asynchronous activity at application termination?
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to