Dangerous SNMP
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
dangerous::snmp Namespace Reference

The snmp namespace contains all of the SNMP-specific classes and functions required to perform SNMP operations with Dangerous SNMP. More...

Namespaces

 securitymodel
 The securitymodel namespace is used to encapsulate the various SNMPv3 security models.
 

Classes

class  AgentX
 An AgentX represents an AgentX sub-agent. More...
 
class  Client
 A Client instance is used to communicate with an SNMP agent. More...
 
class  Context
 A Dangerous SNMP "Context" is the backing for the rest of the Dangerous SNMP libraries. More...
 
class  Exception
 This defines the base exception class for Dangerous SNMP. More...
 
class  AuthenticationFailureException
 This represents an authentication failure. More...
 
class  AuthenticationGenerationException
 This represents a failed attempt to generate authentication information. More...
 
class  DecryptionException
 This represents a failed attempt to decrypt information. More...
 
class  EncryptionException
 This represents a failed attempt to encrypt information. More...
 
class  InvalidTypeException
 This represents a failed type conversion or use. More...
 
class  ParseErrorException
 This represents a parse-error event. More...
 
class  TimeoutException
 This represents a timeout event. More...
 
class  UnknownTransportException
 This represents an unknown transport event. More...
 
class  Logger
 The Logger class is the mechanism by which Dangerous SNMP will perform logging operations. More...
 
class  NumericOid
 A NumericOid represents an "true" OID; that is, one identified by a series of integers (as opposed to a named OID). More...
 
class  PDUErrorStatus
 This is a container class for the enumerations of the PDU "errorStatus" field. More...
 
class  PDU
 A PDU represents an SNMP Protocol Data Unit (PDU). More...
 
class  RawResponse
 This represents the the response that is returned from an SNMP agent in response to some request that was sent. More...
 
class  Response
 This represents the result of a logical operation performed by the client. More...
 
class  SecurityModel
 This class is the base class for all security models. More...
 
class  Authentication
 This is a container class for the type of authentication used in SNMPv3. More...
 
class  Encryption
 This is a container class for the type of encryption used in SNMPv3. More...
 
class  ConfirmedClass
 This class is a wrapper around an enumeration for the "confirmed class" of a PDU. More...
 
class  VarBind
 This defines a variable binding, or "varbind". More...
 
class  Variant
 A Variant defines an arbitrary value (within the scope of SNMP). More...
 

Typedefs

typedef std::vector
< std::unique_ptr< VarBind > > 
VarBindList
 This defines a list of varbinds.
 

Functions

void printPdu (std::ostream &out, const PDU &pdu)
 This prints a PDU to a standard output stream. More...
 
std::ostream & operator<< (std::ostream &out, const Variant &variant)
 

Variables

Logger logger
 We will expose a global Logger instance.
 

Detailed Description

The snmp namespace contains all of the SNMP-specific classes and functions required to perform SNMP operations with Dangerous SNMP.

This includes entities such as agents, clients, as well as internal constructs such as contexts. This is also where OID-handling classes will be found.

Function Documentation

std::ostream& dangerous::snmp::operator<< ( std::ostream &  out,
const Variant &  variant 
)

< TODO: IPv4 formatting

void dangerous::snmp::printPdu ( std::ostream &  out,
const PDU &  pdu 
)

This prints a PDU to a standard output stream.

Parameters
outThe standard output stream.
pduThe PDU to print.