OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
NetPacket Class Reference

Public Member Functions

 NetPacket ()
 NetPacket (const void *data, PacketSize size)
 NetPacket (const NetPacket &other)
 ~NetPacket ()
const NetFeedsource () const
void source (const NetFeed &source)
const TimestampreceiveTime () const
void receiveTime (const Timestamp &receiveTime)
void reset ()
NetPacketoperator= (const NetPacket &other)
Public Member Functions inherited from Packet
 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 423 of file Packet.h.

Constructor & Destructor Documentation

◆ NetPacket() [1/3]

NetPacket ( )
inline

Initializes as null packet.

Definition at line 431 of file Packet.h.

◆ NetPacket() [2/3]

NetPacket ( const void * data,
PacketSize size )
inline

Initializes with primary attributes.

Definition at line 437 of file Packet.h.

◆ NetPacket() [3/3]

NetPacket ( const NetPacket & other)
inline

Initializes as a copy of the other instance.

Definition at line 446 of file Packet.h.

◆ ~NetPacket()

~NetPacket ( )
inline

Does actually nothing.

Definition at line 460 of file Packet.h.

Member Function Documentation

◆ operator=()

NetPacket & operator= ( const NetPacket & other)
inline

Re-initializes as a copy of the other instance.

Definition at line 506 of file Packet.h.

◆ receiveTime() [1/2]

const Timestamp & receiveTime ( ) const
inline

Data reception time (if applicable).

Definition at line 481 of file Packet.h.

◆ receiveTime() [2/2]

void receiveTime ( const Timestamp & receiveTime)
inline

Updates receive time attribute.

Definition at line 488 of file Packet.h.

◆ reset()

void reset ( )
inline

Resets the instances to the blank state.

Definition at line 495 of file Packet.h.

◆ source() [1/2]

const NetFeed & source ( ) const
inline

Identifies source of the packet.

Definition at line 465 of file Packet.h.

◆ source() [2/2]

void source ( const NetFeed & source)
inline

Updates packet source attribute.

Definition at line 474 of file Packet.h.