~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to ASNMP/agent/snmp_agent.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// snmp_agent.h,v 1.3 1998/10/20 02:31:59 levine Exp
2
 
 
3
 
/* -*-C++-*- */
4
 
 
5
 
#ifndef SNMP_AGENT_
6
 
#define SNMP_AGENT_
7
 
// ============================================================================
8
 
//
9
 
// = LIBRARY
10
 
//    ASNMP
11
 
//
12
 
// = FILENAME
13
 
//    snmp_agent.h
14
 
//
15
 
// = AUTHOR
16
 
//    Michael R. MacFaden (mrm@cisco.com)
17
 
//
18
 
// ============================================================================
19
 
 
20
 
class agent_impl;
21
 
 
22
 
class snmp_agent {
23
 
  // = TITLE
24
 
  //   An SNMP v1 agent class
25
 
  //
26
 
  // = DESCRIPTION
27
 
  //   Contructs agents that are capable of processing SNMPv1 requests
28
 
  //   over the MIB II System group
29
 
 
30
 
  public:
31
 
  snmp_agent(); // uses port 161, public, private
32
 
  ~snmp_agent();
33
 
 
34
 
  int valid() const;
35
 
  // did object construct ok
36
 
 
37
 
  int set_args(int argc, char *argv[]);
38
 
  // runtime arguments such as community strings, port to use
39
 
 
40
 
  int run();
41
 
  // begin processing requests
42
 
 
43
 
  private:
44
 
  snmp_agent(const snmp_agent&);
45
 
  agent_impl *agent_;
46
 
};
47
 
 
48
 
#endif // SNMP_AGENT_