Public Member Functions | |
MrclAddress () | |
MrclAddress (char *addr) | |
virtual | ~MrclAddress () |
virtual int | command (int argc, const char *const *argv) |
virtual int | toString (char *str, int strlen)=0 |
virtual int | strlen ()=0 |
virtual void | setAddress (const char *addr)=0 |
void | setAddr (void *addr, int addrlen) |
void | getAddr (void *addr, int addrle=MRCL_ADDRESS_MAX_LEN-sizeof(int), int offset=0) |
char * | getAddr () |
void | write (void *addr, int addrlen) |
bool | operator== (const MrclAddress &a) |
int | isEqual (char *addr) |
Static Public Member Functions | |
static int | areEqual (char *addr1, char *addr2) |
static void | storeAddr (char *dst, char *addr) |
Private Attributes | |
char | addr_ [MRCL_ADDRESS_MAX_LEN] |
Definition at line 87 of file mrcl-address.h.
int MrclAddress::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 in IPAddress.
Definition at line 90 of file mrcl-address.cc.
References setAddress(), strlen(), and toString().
Referenced by IPAddress::command().
Here is the call graph for this function:
virtual int MrclAddress::toString | ( | char * | str, | |
int | strlen | |||
) | [pure virtual] |
Convert the Address to a string and write it into the str buffer.
str | Buffer into which will be written the address | |
strlen | Length of str |
Implemented in IPAddress.
Referenced by MrclRouting::command(), command(), and AodvModule::command().
virtual int MrclAddress::strlen | ( | ) | [pure virtual] |
Implemented in IPAddress.
Referenced by MrclRouting::command(), command(), and AodvModule::command().
virtual void MrclAddress::setAddress | ( | const char * | addr | ) | [pure virtual] |