Wednesday, February 6, 2002 09:03 AM
You will have to add a shutdown method and write a little class to call it.
I would add a status interface that gives features like:
- query server state e.g. running/starting/shutting_down
- prepare_to_shutdown i.e. prepare to shutdown
- shutdown i.e. go and die now
If you have multiple servers then writing one class now that can be added to all your servers will definitely save time later on.
You could always implement dummy methods for methods that this server doesnt need.