Dangerous SNMP
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
GenericPDU< tag, confirmedClass > Class Template Reference

Public Types

typedef PDU value_type
 The value type that this class operates on is "PDU".
 

Static Public Member Functions

static unsigned int length (const value_type &pdu)
 
static bool write (const value_type &pdu, char *buffer, unsigned int bufferSize)
 
static bool read (value_type &pdu, const char *buffer, unsigned int bufferSize)
 

Static Public Attributes

static constexpr const int TYPE = 0xa0 | tag
 This is the type of the PDU. More...
 
static constexpr const
ConfirmedClass::Type 
confirmed = confirmedClass
 This is the "confirmed class" of the PDU.
 

Member Function Documentation

static bool read ( value_type pdu,
const char *  buffer,
unsigned int  bufferSize 
)
inlinestatic

This is the ByteStream for processing the PDU.

static bool write ( const value_type pdu,
char *  buffer,
unsigned int  bufferSize 
)
inlinestatic

This is the ByteStream for processing the PDU.

Member Data Documentation

constexpr const int TYPE = 0xa0 | tag
static

This is the type of the PDU.

Note that the "tag" given to this class as a template

value will determine the type of PDU.

| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |

|Class |P/C| Tag Number |

| 1 | 0 | 1 | tag |


The documentation for this class was generated from the following file: