AgentXcpp  Revision:0.1
Internals Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
agentxcpp::PingPDU Class Reference

Represents a Ping-PDU. More...

#include <PingPDU.hpp>

Inheritance diagram for agentxcpp::PingPDU:
[legend]
Collaboration diagram for agentxcpp::PingPDU:
[legend]

List of all members.

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.

Detailed Description

Represents a Ping-PDU.

Definition at line 31 of file PingPDU.hpp.


Constructor & Destructor Documentation

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.

Parameters:
posIterator pointing to the current stream position. The iterator is advanced while reading the header.
endIterator pointing one element past the end of the current stream. This is needed to mark the end of the buffer.
big_endianWhether the serialized form of the PDU is in big_endian format.
Exceptions:
parse_errorIf parsing fails, for example because reading the stream fails or the PDU is malformed.

Definition at line 25 of file PingPDU.cpp.

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.


Member Function Documentation

Serialize the PDU.

Definition at line 36 of file PingPDU.cpp.

References agentxcpp::PDUwithContext::add_header(), and agentxcpp::PDU::agentxPingPDU.


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