OpenJAUS SAE SDK
6.0.0
|
This is a brief description. More...
#include <Packet.h>
Inherits openjaus::system::Buffer.
Inherited by openjaus::transport::AS5669::JtcpPacket, and openjaus::transport::AS5669::JudpPacket.
Public Member Functions | |
Packet (uint64 size) | |
virtual | ~Packet () |
uint16_t | getPort () const |
Accessor to get the value of port. More... | |
bool | setPort (uint16_t port) |
Accessor to set value of port. More... | |
const InetAddress & | getAddress () const |
Accessor to get the value of address. More... | |
bool | setAddress (const InetAddress &address) |
Accessor to set value of address. More... | |
uint64_t | addressHash () |
Operation addressHash. More... | |
virtual std::string | toString () const |
Public Member Functions inherited from openjaus::system::Buffer | |
Buffer (uint64 size) | |
Creates a Buffer of size bytes. More... | |
Buffer (const Buffer &other) | |
Copies the incoming Buffer into a new a Buffer. More... | |
virtual | ~Buffer () |
BufferReader & | getReader () |
Get a reference to the BufferReader. More... | |
BufferWriter & | getWriter () |
Get a reference to the BufferWriter. More... | |
uint64 | getMaxSize () const |
uint64 | setMaxSize (uint64 size) |
uint64 | bytesContained () const |
virtual uint64 | to (BufferWriter &dst) const |
Copy data from this Buffer starting at the current position 0 to the Buffer connected to the provided BufferWriter. More... | |
virtual uint64 | from (BufferReader &src) |
Copy data from the Buffer connected to the provided BufferReader into this Buffer. More... | |
virtual uint64 | length () const |
Gets the serialized length of this object. More... | |
virtual uint64 | to (BufferWriter &dst, uint64 length) const |
Copy data from this Buffer starting at the current position 0 to the Buffer connected to the provided BufferWriter. More... | |
virtual uint64 | from (BufferReader &src, uint64 length) |
Copy data from the Buffer connected to the provided BufferReader into this Buffer. More... | |
std::string | toString (int byteCount) const |
Buffer & | operator= (const Buffer &rhs) |
bool | operator== (const Buffer &other) const |
Public Member Functions inherited from openjaus::system::Transportable | |
Transportable () | |
virtual | ~Transportable () |
Protected Attributes | |
uint16_t | port |
InetAddress | address |
Friends | |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const Packet &object) |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const Packet *object) |
Detailed description.
openjaus::system::Packet::Packet | ( | uint64 | size | ) |
|
virtual |
uint64_t openjaus::system::Packet::addressHash | ( | ) |
const InetAddress & openjaus::system::Packet::getAddress | ( | ) | const |
uint16_t openjaus::system::Packet::getPort | ( | ) | const |
bool openjaus::system::Packet::setAddress | ( | const InetAddress & | address | ) |
address | The value of the new address. |
bool openjaus::system::Packet::setPort | ( | uint16_t | port | ) |
port | The value of the new port. |
|
virtual |
Reimplemented from openjaus::system::Buffer.
Reimplemented in openjaus::transport::AS5669::JudpPacket, and openjaus::transport::AS5669::JtcpPacket.
|
friend |
|
friend |
|
protected |
|
protected |