• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Gracefully shutting down a server.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: animating the info text upwards
  • Next by Date: Re: animating the info text upwards
  • Previous by thread: Re: animating the info text upwards
  • Next by thread: Re: Gracefully shutting down a server.
  • Index(es):
    • Date
    • Thread