00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _SHUTDOWN_COMMAND_H_
00018 #define _SHUTDOWN_COMMAND_H_
00019
00020 #include <oasys/tclcmd/TclCommand.h>
00021
00022 namespace dtn {
00023
00024 class DTNServer;
00025
00029 class ShutdownCommand : public oasys::TclCommand {
00030 public:
00031 ShutdownCommand(DTNServer* server, const char* cmd = "shutdown");
00032
00036 virtual int exec(int argc, const char** argv, Tcl_Interp* interp);
00037
00038 protected:
00039 static void call_exit(void* clientData);
00040
00041 DTNServer* dtnserver_;
00042 };
00043
00044 }
00045
00046 #endif