#include <uwicrp-module-sink.h>
UwIcrpSink class is used to represent the routing layer of a node.
Definition at line 65 of file uwicrp-module-sink.h.
◆ UwIcrpSink()
UwIcrpSink::UwIcrpSink |
( |
| ) |
|
◆ ~UwIcrpSink()
UwIcrpSink::~UwIcrpSink |
( |
| ) |
|
◆ command()
int UwIcrpSink::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
protectedvirtual |
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.
Definition at line 105 of file uwicrp-module-sink.cpp.
◆ getAckPktHeaderSize()
static const int UwIcrpSink::getAckPktHeaderSize |
( |
| ) |
|
|
inlinestaticprotected |
◆ getDataPktHeaderSize()
static const int UwIcrpSink::getDataPktHeaderSize |
( |
| ) |
|
|
inlinestaticprotected |
◆ getStatusPktHeaderSize()
static const int UwIcrpSink::getStatusPktHeaderSize |
( |
| ) |
|
|
inlinestaticprotected |
◆ initialize()
void UwIcrpSink::initialize |
( |
| ) |
|
|
protectedvirtual |
◆ initStatusPkt()
void UwIcrpSink::initStatusPkt |
( |
Packet * |
p_old, |
|
|
Packet * |
p_new |
|
) |
| |
|
protectedvirtual |
Initializes a Status Packet previously allocated.
- Parameters
-
Packet* | Pointer to a PT_UWICRP_STATUS Packet to use to retrieve the information to initialize the new packet. |
Packet* | Pointer to a PT_UWICRP_STATUS Packet to initialize. |
Definition at line 221 of file uwicrp-module-sink.cpp.
◆ printIP()
string UwIcrpSink::printIP |
( |
const uint8_t |
_ip | ) |
|
|
protectedvirtual |
Return a string with an IP in the classic form "x.x.x.x" converting an ns2 nsaddr_t address.
- Parameters
-
- Returns
- String that contains a printable IP in the classic form "x.x.x.x"
Definition at line 261 of file uwicrp-module-sink.cpp.
◆ recv()
void UwIcrpSink::recv |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 144 of file uwicrp-module-sink.cpp.
◆ recvAsyncClMsg()
int UwIcrpSink::recvAsyncClMsg |
( |
ClMessage * |
m | ) |
|
|
protectedvirtual |
◆ recvSyncClMsg()
int UwIcrpSink::recvSyncClMsg |
( |
ClMessage * |
m | ) |
|
|
protectedvirtual |
Cross-Layer messages synchronous interpreter.
- Parameters
-
ClMessage* | an instance of ClMessage that represent the message received |
- Returns
- 0 if successful.
Definition at line 80 of file uwicrp-module-sink.cpp.
◆ sendBackAck()
void UwIcrpSink::sendBackAck |
( |
const Packet * |
p | ) |
|
|
protectedvirtual |
Creates an ack packet and sends it to the previous hop using the information contained in the header of the data packet passed as input parameter.
It is an ack to the previous hop, and not to the source of the packet.
- Parameters
-
Packet* | Pointer to a Data packet to acknowledge. |
Definition at line 269 of file uwicrp-module-sink.cpp.
◆ ipAddr_
uint8_t UwIcrpSink::ipAddr_ |
|
protected |
◆ numberofackpkt_
long UwIcrpSink::numberofackpkt_ = 0 |
|
staticprivate |
◆ numberofstatuspkt_
long UwIcrpSink::numberofstatuspkt_ = 0 |
|
staticprivate |
◆ printDebug_
int UwIcrpSink::printDebug_ |
|
protected |
The documentation for this class was generated from the following files: