summaryrefslogtreecommitdiff
path: root/ASNMP/agent/main.cpp
blob: 2aec17babbcd1af9707eeed5bb63ca6444879f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// $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"

ACE_RCSID(agent, main, "$Id$")

int main (int argc, char *argv[])
{
  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;
}