#include <TopoPacket.h>
Public Member Functions | |
TopoPacket (BasePacket &p) | |
void | setNeigh (AwdsRouting *awdsRouting) |
set the list of neighbors in a packet. | |
int | getNumLinks () const |
get the number of links in a TopoPacket. | |
gea::Duration | getValidity () const |
return validity as Duration. | |
void | setValidity (long d) |
set validity in milliseconds. | |
void | print () |
dump the topo packet. | |
Static Public Attributes | |
static const size_t | OffsetValidity = FloodHeaderEnd |
static const size_t | OffsetNumLinks = OffsetValidity + sizeof(u_int32_t) |
static const size_t | OffsetLinks = OffsetNumLinks + 1 |
awds::BasePacket *p = getPacketFromSomewhere(); awds::TopoPacket topoP(*p); int n = topoP.getNumLinks();
void TopoPacket::setNeigh | ( | AwdsRouting * | awdsRouting | ) |
set the list of neighbors in a packet.
awdsRouting | pointer to the interf object that contains the neihbors. | |
t | the current time, used for calculating timeouts. |
int awds::TopoPacket::getNumLinks | ( | ) | const [inline] |