AGENT++  4.0.3
Classes | Macros | Variables
request.h File Reference
#include <agent_pp/agent++.h>
#include <agent_pp/threads.h>
#include <agent_pp/snmp_pp_ext.h>
#include <agent_pp/List.h>
#include <agent_pp/mib_entry.h>

Go to the source code of this file.

Classes

class  Request
 
class  RequestList
 The RequestList represents a non ordered queue of Requests. More...
 
class  RequestID
 The RequestID class represents a request ID as a class and associates it with an Oidx key (e.g. More...
 

Macros

#define DEFAULT_WRITE_COMMUNITY   "public"
 
#define DEFAULT_READ_COMMUNITY   "public"
 
#define PHASE_DEFAULT   0
 
#define PHASE_PREPARE   1
 
#define PHASE_COMMIT   2
 
#define PHASE_UNDO   3
 
#define PHASE_CLEANUP   4
 
#define AGENTPP_DECL_TEMPL_ARRAY_MIBENTRY
 The Request class represents SNMP requests.
 

Variables

AGENTPP_DECL_TEMPL template
class AGENTPP_DECL 
Array< MibEntry >
 

Macro Definition Documentation

#define AGENTPP_DECL_TEMPL_ARRAY_MIBENTRY

The Request class represents SNMP requests.

A Request contains a PDU, a from address (UDP), an unique transaction id, a community string, the SNMP version, and two arrays that hold for each variable binding of the PDU flags which determine whether the variable binding has been processed or not, and if it is ready or not (used by MibEntry::prepare_set_request). For SNMPv3 a Request contains two additional attributes, that are the viewName that applies for the request and a pointer the corresponding Vacm.

SET requests are processed through four phases: PHASE_PREPARE(p), PHASE_COMMIT(c), PHASE_UNDO(u), and PHASE_CLEANUP(f). There are three possible sequences that may be followed for a particular SET transaction:

  1. (p), (c), (f)
  2. (p), (c), (u)
  3. (p), (f)
Author
Frank Fock
Version
3.5.23
#define DEFAULT_READ_COMMUNITY   "public"
#define DEFAULT_WRITE_COMMUNITY   "public"
#define PHASE_CLEANUP   4
#define PHASE_COMMIT   2
#define PHASE_DEFAULT   0
#define PHASE_PREPARE   1
#define PHASE_UNDO   3

Variable Documentation