Re: Gracefully shutting down a server.
Re: Gracefully shutting down a server.
- Subject: Re: Gracefully shutting down a server.
- From: Chris Kane <email@hidden>
- Date: Fri, 21 Mar 2003 11:00:35 -0800
On Wednesday, March 19, 2003, at 21:40, email@hidden wrote:
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.
The last part of that last sentence beginning "as it only..." is never
a valid assumption.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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.