Represents a Ping-PDU. More...
#include <PingPDU.hpp>
Public Member Functions | |
| PingPDU (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian) | |
| Parse constructor. | |
| PingPDU () | |
| Default Constructor. | |
| data_t | serialize () |
| Serialize the PDU. | |
Represents a Ping-PDU.
Definition at line 31 of file PingPDU.hpp.
| PingPDU::PingPDU | ( | data_t::const_iterator & | pos, |
| const data_t::const_iterator & | end, | ||
| bool | big_endian | ||
| ) |
Parse constructor.
Construct the object by parsing a stream. See Parsing incoming PDUs for details about PDU parsing.
| 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. |
| parse_error | If parsing fails, for example because reading the stream fails or the PDU is malformed. |
Definition at line 25 of file PingPDU.cpp.
| agentxcpp::PingPDU::PingPDU | ( | ) | [inline] |
Default Constructor.
Sets the state of the object to the defaults as set by the PDU::PDUwithContext() constructor.
Definition at line 64 of file PingPDU.hpp.
Serialize the PDU.
Definition at line 36 of file PingPDU.cpp.
References agentxcpp::PDUwithContext::add_header(), and agentxcpp::PDU::agentxPingPDU.