DESERT 3.5.1
Loading...
Searching...
No Matches
ClMsgTapPkt Class Reference

#include <uwtap_clmsg.h>

Inheritance diagram for ClMsgTapPkt:
Collaboration diagram for ClMsgTapPkt:

Public Member Functions

 ClMsgTapPkt ()
 
 ClMsgTapPkt (Packet *packet, clmsg_tap_type type, double timestamp=NOW, double tx_duration=0.0)
 
 ClMsgTapPkt (int dest_id)
 
virtual ~ClMsgTapPkt ()=default
 
bool getPacket (Packet *packet)
 
double getTimestamp () const
 
double getTxDuration () const
 
void setPacket (Packet *packet)
 

Public Attributes

Packet * pkt
 
clmsg_tap_type clmsg_type
 
double timestamp
 
double tx_duration
 

Static Public Attributes

static const uint CLMSG_TAP_VERBOSITY = 3
 

Detailed Description

Definition at line 47 of file uwtap_clmsg.h.

Constructor & Destructor Documentation

◆ ClMsgTapPkt() [1/3]

ClMsgTapPkt::ClMsgTapPkt ( )

Constructor for broadcast ClMsg.

Definition at line 43 of file uwtap_clmsg.cpp.

◆ ClMsgTapPkt() [2/3]

ClMsgTapPkt::ClMsgTapPkt ( Packet *  packet,
clmsg_tap_type  type,
double  timestamp = NOW,
double  tx_duration = 0.0 
)

Constructor for broadcast ClMsg.

Definition at line 52 of file uwtap_clmsg.cpp.

◆ ClMsgTapPkt() [3/3]

ClMsgTapPkt::ClMsgTapPkt ( int  dest_id)

Constructor for UNICAST ClMsg.

Parameters
dest_idid of the destiantion module

Definition at line 62 of file uwtap_clmsg.cpp.

◆ ~ClMsgTapPkt()

virtual ClMsgTapPkt::~ClMsgTapPkt ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getPacket()

bool ClMsgTapPkt::getPacket ( Packet *  packet)

Returns the pointer to the overheard packet.

Parameters
packetpointer reference to the packet to be returned
Returns
true if the packet is present, false otherwise

Definition at line 71 of file uwtap_clmsg.cpp.

◆ getTimestamp()

double ClMsgTapPkt::getTimestamp ( ) const

Returns the timestamp of the overheard packet.

Returns
the timestamp of the overheard packet

Definition at line 87 of file uwtap_clmsg.cpp.

◆ getTxDuration()

double ClMsgTapPkt::getTxDuration ( ) const

Returns the timestamp of the overheard packet.

Returns
the timestamp of the overheard packet

Definition at line 93 of file uwtap_clmsg.cpp.

◆ setPacket()

void ClMsgTapPkt::setPacket ( Packet *  packet)

Set the packet to send via clmsg.

Parameters
packetpointer to the packet
Returns
true if the packet is present, false otherwise

Definition at line 81 of file uwtap_clmsg.cpp.

Member Data Documentation

◆ CLMSG_TAP_VERBOSITY

const uint ClMsgTapPkt::CLMSG_TAP_VERBOSITY = 3
static

Definition at line 96 of file uwtap_clmsg.h.

◆ clmsg_type

clmsg_tap_type ClMsgTapPkt::clmsg_type

packet to send via clmsg to other layers.

Definition at line 98 of file uwtap_clmsg.h.

◆ pkt

Packet* ClMsgTapPkt::pkt

Verbosity level.

Definition at line 97 of file uwtap_clmsg.h.

◆ timestamp

double ClMsgTapPkt::timestamp

Definition at line 99 of file uwtap_clmsg.h.

◆ tx_duration

double ClMsgTapPkt::tx_duration

rx or tx timestamp

Definition at line 100 of file uwtap_clmsg.h.


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