One class destroying another



I am writing a server which will be unmonitored, so it has to look after
itself. I have a class (Class A) which contains the main method. This
creates another class (Class B) which runs the main server. class A monitors
the system and decides when things have gone wrong and the server needs to
restart. This is all working fine. What I need to know is how to make class
A kill class B, hopefully in such a way as to shut down any live threads
etc... first. I figure I need something like destroy() from C.

Any help most welcome.


.



Relevant Pages

  • Re: asynchronously writing to a file, a cheap way?
    ... your typical asynchronous route for writing to a file, ... performance when the processing server is running. ... end of the pipe doesn't need to be running. ... I you already have a thread pool or IOCP that you can use t handle the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Are write() calls guaranteed atomic?
    ... >> writing the data have no knowledge of the FIFO, ... > If you cannot modify the clients, try changing your server to create a ... > Unix domain socket instead of a named pipe (the clients shouldn't see ...
    (freebsd-hackers)
  • Re: Access to Access DB
    ... I am also a softeware trainer in the middle of writing ... side scripted language and rent server space. ... Finding a hosted service for Office is not a ... cost or work and skilling up. ...
    (microsoft.public.access.gettingstarted)
  • Re: Need help with a question.
    ... but I'm stuck on how to read $cpqlogline into an array ... without writing it to a file. ... open(my $SRV, '<', $server_file) ... for every server with every mac address. ...
    (comp.lang.perl.misc)
  • Re: Windows SBS 2003 R2 Administrators Campanion
    ... Server MVP - was the Tech Editor, and he is meticulous, checking me at every ... Russ - SBITS.Biz (MCP-SBS) wrote: ... (Writing a book without seeing the product that's cool) ...
    (microsoft.public.windows.server.sbs)