Gracefully shutting down a server.
Gracefully shutting down a server.
- Subject: Gracefully shutting down a server.
- From: email@hidden
- Date: Wed, 19 Mar 2003 21:40:08 -0800 (PST)
hello,
I have a server which implements the following method:
-(oneway void)shutdown
the idea is for a client to call this method which would result in the following
done on the server side:
(a) NSConnection *theConnection = [NSConnection defaultConnection];
(b) [theConnection invalidate];
(c) [theConnection removeRunLoop: [NSRunLoop currentRunLoop]];
As I understand it after I do (c) the currentRunLoop of the server should
terminate - as it only contains theConnection as input, and thus shutting down
the server.
I find that this is not the case. I find that I need to explicitly call
exit(0); to stop the server from running.
Can anyone direct me to resources or maybe give me an idea as to what is wrong?
thanks
Zameer
__________________________________________________________
Get your FREE personalized e-mail at
http://www.canada.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.