Go to the documentation of this file.
22 #ifndef snmp_request_h_
23 #define snmp_request_h_
25 #include <snmp_pp/snmperrs.h>
26 #include <snmp_pp/address.h>
27 #include <snmp_pp/target.h>
29 #include <snmp_pp/snmp_pp.h>
31 #define MIN_REQUEST_ID 10000
32 #define DEFAULT_RETRIES 1
33 #define DEFAULT_TIMEOUT 900
35 #ifdef AGENTPP_NAMESPACE
54 friend class SnmpRequestV3;
56 static int process(
int,
const NS_SNMP UdpAddress&,
Vbx*,
int& sz,
Vbx*,
int&,
57 const NS_SNMP OctetStr&,
const int=0,
const int=0);
58 static int process_trap(
NS_SNMP SnmpTarget&,
Vbx*,
int sz,
61 static int get (
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
int&);
62 static int next(
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
int&);
63 static int getbulk(
const NS_SNMP UdpAddress&,
Vbx*,
int& sz,
Vbx*,
int&,
64 const int,
const int);
65 static int set (
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
int&);
67 static int get (
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
int&,
const NS_SNMP OctetStr&);
68 static int next(
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
int&,
const NS_SNMP OctetStr&);
69 static int getbulk(
const NS_SNMP UdpAddress&,
Vbx*,
int& sz,
Vbx*,
int&,
70 const NS_SNMP OctetStr&,
const int,
const int);
71 static int gettable(
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
Vbx*,
int&,
72 const NS_SNMP OctetStr&,
const int);
73 static int set (
const NS_SNMP UdpAddress&,
Vbx*,
int sz,
int&,
const NS_SNMP OctetStr&);
79 static Snmpx *get_new_snmp(
int &status);
137 const int non_repeaters = 0,
const int repetitions = 0);
144 #ifdef AGENTPP_NAMESPACE