3 #include "dangerous/snmp/exception.hpp"
4 #include "dangerous/snmp/securitymodel.hpp"
5 #include "dangerous/snmp/types.hpp"
12 namespace dangerous {
namespace snmp {
43 Version
version()
const {
return _version; }
A ByteStream is an object that is basically a big wrapper around a character buffer.
Definition: bytestream.hpp:30
virtual std::unique_ptr< ByteStream > decode(const SecurityModel *securityModel, ByteStream &byteStream, std::unique_ptr< SecurityModel > &incomingSecurityModel)=0
This decodes a message.
A MessaqeProcessor is responsible for creating an envelope around a particular payload and also remov...
Definition: messageprocessor.hpp:28
This defines the base exception class for Dangerous SNMP.
Definition: exception.hpp:10
Type
A Type represents one of the two defined values for the "confirmed class" of a PDU.
Definition: types.hpp:65
This class is the base class for all security models.
Definition: securitymodel.hpp:29
virtual std::vector< char > encode(const SecurityModel *securityModel, ConfirmedClass::Type confirmedClass, const std::vector< char > &pduBytes)=0
This encodes a new message.
Version version() const
This returns the SNMP version of the Message Processor.
Definition: messageprocessor.hpp:43