Dangerous SNMP
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
VARBIND Class Reference

This class allows for the encoding and decoding of VarBind pointers. More...

#include <encoding.hpp>

Public Types

typedef std::unique_ptr< VarBindvalue_type
 This class operates on unique VarBind pointers.
 

Static Public Member Functions

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

Static Public Attributes

static constexpr const char * NAME = "VarBind"
 This is the name of this entity.
 
static const int TYPE = asn1::helper::SEQUENCE::TYPE
 A VarBind is encoded as a sequence with two children: More...
 

Detailed Description

This class allows for the encoding and decoding of VarBind pointers.

Member Function Documentation

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

This is the ByteStream for processing the VarBind.

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

This is the ByteStream for processing the VarBind.

Member Data Documentation

const int TYPE = asn1::helper::SEQUENCE::TYPE
static

A VarBind is encoded as a sequence with two children:

  1. The OID.
  2. The value.

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