5 namespace dangerous {
namespace snmp {
29 inconsistentValue = 12,
30 resourceUnavailable = 13,
33 authorizationError = 16,
45 static const char*
name(
int errorStatus );
135 void printPdu( std::ostream& out,
const PDU& pdu );
static const char * name(int errorStatus)
This returns a pointer to a statically allocated string that contains the standard name for the error...
A PDU represents an SNMP Protocol Data Unit (PDU).
Definition: pdu.hpp:56
void printPdu(std::ostream &out, const PDU &pdu)
This prints a PDU to a standard output stream.
void addOid(const NumericOid &oid)
This adds a new VarBind to the PDU (with a null value).
int errorStatus
This is the ErrorStatus for the PDU.
Definition: pdu.hpp:116
PDU()
Default constructor.
A NumericOid represents an "true" OID; that is, one identified by a series of integers (as opposed to...
Definition: numericoid.hpp:22
int errorIndex
This is the ErrorIndex for the PDU.
Definition: pdu.hpp:124
This is a container class for the enumerations of the PDU "errorStatus" field.
Definition: pdu.hpp:11
bool containsOid(const NumericOid &oid)
This checks to see if the PDU contains the given OID.
ErrorStatus
An ErrorStatus represents the specific error for a PDU.
Definition: pdu.hpp:16
static const char * errorName(int errorStatus)
This returns a pointer to a statically allocated string that contains the standard name for the error...
int requestId
This is the RequestID for the PDU.
Definition: pdu.hpp:109
std::vector< std::unique_ptr< VarBind > > VarBindList
This defines a list of varbinds.
Definition: types.hpp:116
VarBindList varbinds
This is the list of VarBinds in the PDU.
Definition: pdu.hpp:127