This class represents a Register-PDU.
More...
#include <RegisterPDU.hpp>
List of all members.
Additional Inherited Members |
| | PDUwithContext (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian) |
| | Parse constructor.
|
| void | add_header (type_t type, binary &payload) const |
| | Add PDU header and context field to the payload.
|
| | PDUwithContext () |
| | Default Constructor.
|
| | PDU (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian) |
| | Parse constructor.
|
| | PDU () |
| | Default constructor.
|
| virtual | ~PDU () |
| | Destructor.
|
Detailed Description
This class represents a Register-PDU.
Definition at line 36 of file RegisterPDU.hpp.
Constructor & Destructor Documentation
| RegisterPDU::RegisterPDU |
( |
binary::const_iterator & |
pos, |
|
|
const binary::const_iterator & |
end, |
|
|
bool |
big_endian |
|
) |
| |
Parse constructor.
Construct the object by parsing a stream. See Parsing incoming PDUs for details about PDU parsing.
- Parameters:
-
| pos | Iterator pointing to the current stream position. The iterator is advanced while reading the header. |
| end | Iterator pointing one element past the end of the current stream. This is needed to mark the end of the buffer. |
| big_endian | Whether the serialized form of the PDU is in big_endian format. |
- Exceptions:
-
| parse_error | If parsing fails, for example because reading the stream fails or the PDU is malformed. |
Definition at line 24 of file RegisterPDU.cpp.
References priority, range_subid, agentxcpp::read32(), subtree, timeout, and upper_bound.
| 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 77 of file RegisterPDU.cpp.
Member Function Documentation
| 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 171 of file RegisterPDU.hpp.
References agentxcpp::PDU::instance_registration.
| uint8_t agentxcpp::RegisterPDU::get_priority |
( |
| ) |
|
|
inline |
| uint8_t agentxcpp::RegisterPDU::get_range_subid |
( |
| ) |
|
|
inline |
| oid agentxcpp::RegisterPDU::get_subtree |
( |
| ) |
|
|
inline |
| uint8_t agentxcpp::RegisterPDU::get_timeout |
( |
| ) |
|
|
inline |
| uint32_t 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 183 of file RegisterPDU.hpp.
References agentxcpp::PDU::instance_registration.
| void agentxcpp::RegisterPDU::set_priority |
( |
uint8_t |
priority | ) |
|
|
inline |
| void agentxcpp::RegisterPDU::set_range_subid |
( |
uint8_t |
range_subid | ) |
|
|
inline |
| void agentxcpp::RegisterPDU::set_subtree |
( |
oid |
subtree | ) |
|
|
inline |
| void agentxcpp::RegisterPDU::set_timeout |
( |
uint8_t |
timeout | ) |
|
|
inline |
| void agentxcpp::RegisterPDU::set_upper_bound |
( |
uint32_t |
upper_bound | ) |
|
|
inline |
Member Data Documentation
| uint8_t agentxcpp::RegisterPDU::priority |
|
private |
| uint8_t agentxcpp::RegisterPDU::range_subid |
|
private |
| oid agentxcpp::RegisterPDU::subtree |
|
private |
| uint8_t agentxcpp::RegisterPDU::timeout |
|
private |
| uint32_t agentxcpp::RegisterPDU::upper_bound |
|
private |
The documentation for this class was generated from the following files: