#include <ip-address-codec.h>
Inheritance diagram for IPAddressCodec:
Public Member Functions | |
IPAddressCodec () | |
~IPAddressCodec () | |
virtual int | command (int argc, const char *const *argv) |
virtual void | recv (Packet *p) |
Private Attributes | |
int | up_ |
Definition at line 47 of file ip-address-codec.h.
IPAddressCodec::IPAddressCodec | ( | ) |
Class constructor
Definition at line 43 of file ip-address-codec.cc.
IPAddressCodec::~IPAddressCodec | ( | ) |
Class destructor
Definition at line 47 of file ip-address-codec.cc.
int IPAddressCodec::command | ( | int | argc, | |
const char *const * | argv | |||
) | [virtual] |
TCL command interpreter. It implements the following OTcl methods:
argc | number of arguments in argv | |
argv | array of strings which are the comand parameters (Note that argv[0] is the name of the object) |
Reimplemented from Module.
Definition at line 51 of file ip-address-codec.cc.
References Module::command(), MrclAddress::getAddr(), and up_.
Here is the call graph for this function:
void IPAddressCodec::recv | ( | Packet * | p | ) | [virtual] |
Abstract method which has to be filled with the ad-hoc operations that the module has to do to the packet received
p | pointer to the packet will be received |
Implements Module.
Definition at line 105 of file ip-address-codec.cc.
References RoutingHdr::daddr(), HDR_ROUTING, RoutingHdr::saddr(), Module::sendDown(), Module::sendUp(), UP, and up_.
Here is the call graph for this function:
int IPAddressCodec::up_ [private] |
TRUE defines that the codec is placed above the routing module
Definition at line 76 of file ip-address-codec.h.