#include <uwrov-module.h>
UwROVModule class is used to manage UWROV packets and to collect statistics about them.
Definition at line 83 of file uwrov-module.h.
◆ UWROV_ACK_POLICY
Enumerator |
---|
ACK_PIGGYBACK | |
ACK_IMMEDIATELY | |
ACK_PGBK_OR_TO | |
Definition at line 162 of file uwrov-module.h.
◆ UwROVModule()
UwROVModule::UwROVModule |
( |
| ) |
|
◆ ~UwROVModule()
virtual UwROVModule::~UwROVModule |
( |
| ) |
|
|
virtualdefault |
◆ command()
int UwROVModule::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
overridevirtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Reimplemented from UwCbrModule.
Definition at line 102 of file uwrov-module.cc.
◆ getROVCTRHeaderSize()
static int UwROVModule::getROVCTRHeaderSize |
( |
| ) |
|
|
inlinestatic |
◆ getROVMonHeaderSize()
static int UwROVModule::getROVMonHeaderSize |
( |
| ) |
|
|
inlinestatic |
◆ initPkt()
void UwROVModule::initPkt |
( |
Packet * |
p | ) |
|
|
overridevirtual |
Initializes a monitoring data packet passed as argument with the default values.
- Parameters
-
Packet* | Pointer to a packet already allocated to fill with the right values. |
Reimplemented from UwCbrModule.
Definition at line 189 of file uwrov-module.cc.
◆ recv() [1/2]
void UwROVModule::recv |
( |
Packet * |
p | ) |
|
|
overridevirtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Reimplemented from UwCbrModule.
Definition at line 225 of file uwrov-module.cc.
◆ recv() [2/2]
void UwROVModule::recv |
( |
Packet * |
p, |
|
|
Handler * |
h |
|
) |
| |
|
overridevirtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Handler* | Handler. |
Reimplemented from UwCbrModule.
Definition at line 219 of file uwrov-module.cc.
◆ sendAck()
void UwROVModule::sendAck |
( |
| ) |
|
|
virtual |
◆ UwROVSendAckTimer
◆ ack
If not zero, contains the ACK to the last command packet received.
Definition at line 165 of file uwrov-module.h.
◆ ackNotPgbk
int UwROVModule::ackNotPgbk |
|
protected |
◆ ackPolicy
Flag to set the policy for ACK transimission, ACK_PIGGYBACK: ACK is always sent in piggyback, ACK_IMMEDIATELY: ACK is always sent immediately with a dedicated packet after the reception of CTR packet, ACK_PGBK_OR_TO: ACK is sent in piggyback if a ROV packet is generated before an ackTimeout otherwise ACK is sent with a dedicated packet after the acKTimeout.
Definition at line 176 of file uwrov-module.h.
◆ ackPriority
int UwROVModule::ackPriority |
|
protected |
Flag to give higher priority to ACK or not.
Definition at line 166 of file uwrov-module.h.
◆ ackTimeout
int UwROVModule::ackTimeout |
|
protected |
< Flag set to 1 to drop waypoints with sequence number lower or equal than last_sn_confirmed.
Timeout after which ACK is sent if ackPolicy = ACK_PGBK_OR_TO.
Definition at line 169 of file uwrov-module.h.
◆ ackTimer_
◆ drop_old_waypoints
int UwROVModule::drop_old_waypoints |
|
protected |
< Number of ACK not sent in piggyback when ackPolicy = 2.
Definition at line 168 of file uwrov-module.h.
◆ last_sn_confirmed
int UwROVModule::last_sn_confirmed |
|
protected |
Sequence number of the last command packet received.
Definition at line 164 of file uwrov-module.h.
◆ log_flag
int UwROVModule::log_flag |
|
protected |
◆ out_file_stats
std::ofstream UwROVModule::out_file_stats |
|
protected |
Output stream for the textual file of debug.
Definition at line 179 of file uwrov-module.h.
◆ posit
The documentation for this class was generated from the following files: