EMANE  1.0.1
EMANE::PacketInfo Class Reference

Store source, destination, creation time and priority information for a packet. More...

#include <packetinfo.h>

Public Member Functions

 PacketInfo (NEMId source, NEMId destination, Priority priority, TimePoint creationTime)
 
 PacketInfo (NEMId source, NEMId destination, Priority priority, TimePoint creationTime, const uuid_t &uuid)
 
 ~PacketInfo ()
 
NEMId getSource () const
 
NEMId getDestination () const
 
Priority getPriority () const
 
TimePoint getCreationTime () const
 
const uuid_t & getUUID () const
 

Detailed Description

Store source, destination, creation time and priority information for a packet.

Note
Instances are immutable

Definition at line 50 of file packetinfo.h.

Constructor & Destructor Documentation

◆ PacketInfo() [1/2]

EMANE::PacketInfo::PacketInfo ( NEMId  source,
NEMId  destination,
Priority  priority,
TimePoint  creationTime 
)
inline

Creates a PacketInfo instance

Parameters
sourceThe src NEM
destinationThe destination NEM
priorityThe priority
creationTimeCreation time of the packet

Definition at line 34 of file packetinfo.inl.

◆ PacketInfo() [2/2]

EMANE::PacketInfo::PacketInfo ( NEMId  source,
NEMId  destination,
Priority  priority,
TimePoint  creationTime,
const uuid_t &  uuid 
)
inline

Creates a PacketInfo instance

Parameters
sourceThe src NEM
destinationThe destination NEM
priorityThe priority
creationTimeCreation time of the packet
uuidApplication UUID (upstream only)

Definition at line 47 of file packetinfo.inl.

◆ ~PacketInfo()

EMANE::PacketInfo::~PacketInfo ( )
inline

Destroys an instance

Definition at line 61 of file packetinfo.inl.

Member Function Documentation

◆ getCreationTime()

EMANE::TimePoint EMANE::PacketInfo::getCreationTime ( ) const
inline

Gets the creation time

Returns
creation time

Definition at line 82 of file packetinfo.inl.

◆ getDestination()

EMANE::NEMId EMANE::PacketInfo::getDestination ( ) const
inline

Gets the destination

Returns
Destination NEM
Note
May be NEM_BROADCAST_MAC_ADDRESS

Definition at line 70 of file packetinfo.inl.

◆ getPriority()

EMANE::Priority EMANE::PacketInfo::getPriority ( ) const
inline

Gets the priority

@ return prioroty

Definition at line 76 of file packetinfo.inl.

◆ getSource()

EMANE::NEMId EMANE::PacketInfo::getSource ( ) const
inline

Gets the source

Returns
souce NEM id

Definition at line 64 of file packetinfo.inl.

◆ getUUID()

const uuid_t & EMANE::PacketInfo::getUUID ( ) const
inline

Gets the application UUID

Returns
uuid

Definition at line 88 of file packetinfo.inl.


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