53#define UWROV_DROP_REASON_UNKNOWN_TYPE "UKT"
54#define UWROV_DROP_REASON_OUT_OF_SEQUENCE "OOS"
55#define UWROV_DROP_REASON_DUPLICATED_PACKET "DPK"
56#define HDR_UWROV_MONITORING(p) (hdr_uwROV_monitoring::access(p))
57#define HDR_UWROV_CTR(p) (hdr_uwROV_ctr::access(p))
75 virtual void expire(Event *e);
108 virtual int command(
int argc,
const char *
const *argv)
override;
117 virtual void initPkt(Packet *p)
override;
124 virtual void recv(Packet *)
override;
132 virtual void recv(Packet *p, Handler *h)
override;
UwCbrModule class is used to manage UWCBR packets and to collect statistics about them.
UwROVModule class is used to manage UWROV packets and to collect statistics about them.
int drop_old_waypoints
< Number of ACK not sent in piggyback when ackPolicy = 2.
int ack
If not zero, contains the ACK to the last command packet received.
virtual void sendAck()
Sends ACK if ackTimeout expire;.
UwROVModule()
Default Constructor of UwROVModule class.
static int getROVMonHeaderSize()
Returns the size in byte of a hdr_uwROV_monitoring packet header.
virtual ~UwROVModule()=default
Destructor of UwROVModule class.
int ackTimeout
< Flag set to 1 to drop waypoints with sequence number lower or equal than last_sn_confirmed.
UWSMPosition * posit
ROV position.
UWROV_ACK_POLICY ackPolicy
Flag to set the policy for ACK transimission, ACK_PIGGYBACK: ACK is always sent in piggyback,...
std::ofstream out_file_stats
Output stream for the textual file of debug.
virtual void recv(Packet *) override
Performs the reception of packets from upper and lower layers.
UwROVSendAckTimer ackTimer_
Timer to schedule ACK transmission.
int ackPriority
Flag to give higher priority to ACK or not.
virtual void initPkt(Packet *p) override
Initializes a monitoring data packet passed as argument with the default values.
int last_sn_confirmed
Sequence number of the last command packet received.
virtual int command(int argc, const char *const *argv) override
TCL command interpreter.
int log_flag
Flag to enable log file writing.
static int getROVCTRHeaderSize()
Returns the size in byte of a hdr_uwROV_ctr packet header.
UwROVSendACKTimer class is used to handle the scheduling period of UWROV packets.
virtual void expire(Event *e)
UwROVSendAckTimer(UwROVModule *m)
hdr_uwROV_ctr describes UWROV_ctr packets for controlling the ROV.
hdr_uwROV_monitoring describes UWROV_monitoring packets sent by the ROV to the base station for monit...
Provides the UWCBR packets header description and the definition of the class UWCBR.
Provides both UWROV monitoring and control packets header description.
Provides the definition of the class UWSMPosition.