diff options
Diffstat (limited to 'ACE/ASNMP/agent/main.cpp')
-rw-r--r-- | ACE/ASNMP/agent/main.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ACE/ASNMP/agent/main.cpp b/ACE/ASNMP/agent/main.cpp new file mode 100644 index 00000000000..ff0c9431518 --- /dev/null +++ b/ACE/ASNMP/agent/main.cpp @@ -0,0 +1,28 @@ +// $Id$ + +// This server daemon processes SNMP Version 1 get, get-next, and set +// commands. over the MIB II "System" group only. + +#include "ace/config-all.h" +#include "snmp_agent.h" +#include "ace/ACE.h" + +ACE_RCSID(agent, main, "$Id$") + +int +main (int argc, char *argv[]) +{ + ACE::init (); + snmp_agent the_agent; + + if (the_agent.set_args(argc, argv)) + return 1; + + if (!the_agent.valid()) { + return 1; + } + + the_agent.run(); // main loop + + return 0; +} |