This class represents a Register-PDU.
More...
#include <RegisterPDU.hpp>
|
static QSharedPointer< PDU > | parse_pdu (binary buf) |
| Parse a PDU from a buffer. More...
|
|
enum | type_t {
agentxOpenPDU = 1,
agentxClosePDU = 2,
agentxRegisterPDU = 3,
agentxUnregisterPDU = 4,
agentxGetPDU = 5,
agentxGetNextPDU = 6,
agentxGetBulkPDU = 7,
agentxTestSetPDU = 8,
agentxCommitSetPDU = 9,
agentxUndoSetPDU = 10,
agentxCleanupSetPDU = 11,
agentxNotifyPDU = 12,
agentxPingPDU = 13,
agentxIndexAllocatePDU = 14,
agentxIndexDeallocatePDU = 15,
agentxAddAgentCapsPDU = 16,
agentxRemoveAgentCapsPDU = 17,
agentxResponsePDU = 18
} |
| The PDU types. More...
|
|
| PDUwithContext (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian) |
| Parse constructor. More...
|
|
void | add_header (type_t type, binary &payload) const |
| Add PDU header and context field to the payload. More...
|
|
| PDUwithContext () |
| Default Constructor. More...
|
|
| PDU (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian) |
| Parse constructor. More...
|
|
void | add_header (type_t type, binary &payload) const |
| Construct the PDU header and add it to the payload. More...
|
|
| PDU () |
| Default constructor. More...
|
|
bool | instance_registration |
| the instance_registration flag More...
|
|
bool | non_default_context |
| Whether the PDU has a non-default context. More...
|
|
quint32 | packetID |
| h.packetID field according to RFC 2741, 6.1. "AgentX PDU
Header". More...
|
|
This class represents a Register-PDU.
Definition at line 34 of file RegisterPDU.hpp.
RegisterPDU::RegisterPDU |
( |
binary::const_iterator & |
pos, |
|
|
const binary::const_iterator & |
end, |
|
|
bool |
big_endian |
|
) |
| |
RegisterPDU::RegisterPDU |
( |
| ) |
|
Default Constructor.
Sets the state of the object to the defaults as set by the PDU::PDU() constructor, plus the following:
- timeout = 0
- priority = 127 (According to RFC 2741, section '6.2.3. The agentx-Register-PDU')
- subtree = null Object Identifier
- range_subid = 0
- upper_bound = null Object Identifier
Definition at line 78 of file RegisterPDU.cpp.
bool agentxcpp::RegisterPDU::get_instance_registration |
( |
| ) |
|
|
inline |
Get instance_registration flag.
The instance_registration flag is part of the PDU header and therefore located in the PDU class. However, it is used only by Register-PDUs, therefore the getter method is located here.
Definition at line 169 of file RegisterPDU.hpp.
References agentxcpp::PDU::instance_registration.
quint8 agentxcpp::RegisterPDU::get_priority |
( |
| ) |
|
|
inline |
quint8 agentxcpp::RegisterPDU::get_range_subid |
( |
| ) |
|
|
inline |
Oid agentxcpp::RegisterPDU::get_subtree |
( |
| ) |
|
|
inline |
quint8 agentxcpp::RegisterPDU::get_timeout |
( |
| ) |
|
|
inline |
quint32 agentxcpp::RegisterPDU::get_upper_bound |
( |
| ) |
|
|
inline |
binary RegisterPDU::serialize |
( |
| ) |
const |
|
virtual |
void agentxcpp::RegisterPDU::set_instance_registration |
( |
bool |
ir | ) |
|
|
inline |
Set instance_registration flag.
The instance_registration flag is part of the PDU header and therefore located in the PDU class. However, it is used only by Register-PDUs, therefore the setter method is located here.
Definition at line 181 of file RegisterPDU.hpp.
References agentxcpp::PDU::instance_registration.
void agentxcpp::RegisterPDU::set_priority |
( |
quint8 |
priority | ) |
|
|
inline |
void agentxcpp::RegisterPDU::set_range_subid |
( |
quint8 |
range_subid | ) |
|
|
inline |
void agentxcpp::RegisterPDU::set_subtree |
( |
Oid |
subtree | ) |
|
|
inline |
void agentxcpp::RegisterPDU::set_timeout |
( |
quint8 |
timeout | ) |
|
|
inline |
void agentxcpp::RegisterPDU::set_upper_bound |
( |
quint32 |
upper_bound | ) |
|
|
inline |
quint8 agentxcpp::RegisterPDU::priority |
|
private |
quint8 agentxcpp::RegisterPDU::range_subid |
|
private |
Oid agentxcpp::RegisterPDU::subtree |
|
private |
quint8 agentxcpp::RegisterPDU::timeout |
|
private |
quint32 agentxcpp::RegisterPDU::upper_bound |
|
private |
The documentation for this class was generated from the following files: