OnixS C++ CME MDP Conflated UDP Handler  1.1.2
API documentation
Packet Class Reference

#include <OnixS/CME/ConflatedUDP/Packet.h>

Public Member Functions

 Packet ()
 
 Packet (const void *data, PacketSize size)
 
 Packet (const void *data, PacketSize size, const NoVerify &)
 
 Packet (const Packet &other)
 
 ~Packet ()
 
 operator bool () const
 
const void * data () const
 
PacketSize size () const
 
SequenceNumber seqNumber () const
 
const TimestampsendingTime () const
 
BinaryMessages messages () const
 
void reset ()
 
void reset (const void *data, PacketSize size)
 
void reset (const void *data, PacketSize size, const NoVerify &)
 
Packetoperator= (const Packet &other)
 

Detailed Description

Definition at line 235 of file Packet.h.

Constructor & Destructor Documentation

Packet ( )
inline

Initializes blank instance.

Definition at line 248 of file Packet.h.

Packet ( const void *  data,
PacketSize  size 
)
inline

Initializes binary packet over the given buffer.

Exceptions
std::exceptionif given buffer doesn't satisfy base requirements on well-formed CME packet.

Definition at line 258 of file Packet.h.

Packet ( const void *  data,
PacketSize  size,
const NoVerify  
)
inline

Initializes binary packet over the given buffer. Verification of the incoming content is omitted.

Definition at line 284 of file Packet.h.

Packet ( const Packet other)
inline

Initializes as a copy of the other instance.

Definition at line 297 of file Packet.h.

~Packet ( )
inline

Does actually nothing.

Definition at line 305 of file Packet.h.

Member Function Documentation

const void* data ( ) const
inline

Packet bytes.

Definition at line 317 of file Packet.h.

BinaryMessages messages ( ) const
inline

Returns collection of messages stored by instance.

Definition at line 347 of file Packet.h.

operator bool ( ) const
inline

Indicates whether the given instance points to a valid packet.

Definition at line 311 of file Packet.h.

Packet& operator= ( const Packet other)
inline

Re-initializes the instance as the copy of the other one.

Definition at line 413 of file Packet.h.

void reset ( )
inline

Resets the instance to the null state.

Definition at line 359 of file Packet.h.

void reset ( const void *  data,
PacketSize  size 
)
inline

Re-initializes the instance to refer to the other content.

Definition at line 368 of file Packet.h.

void reset ( const void *  data,
PacketSize  size,
const NoVerify  
)
inline

Re-initializes the instance to refer to the other content.

Definition at line 397 of file Packet.h.

const Timestamp& sendingTime ( ) const
inline

Packet sending time.

Definition at line 339 of file Packet.h.

SequenceNumber seqNumber ( ) const
inline

Packet sequence number.

Definition at line 331 of file Packet.h.

PacketSize size ( ) const
inline

Packet size.

Definition at line 325 of file Packet.h.


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