awds::UnicastPacket Class Reference

The access class for unicast packets. More...

#include <UnicastPacket.h>

Inheritance diagram for awds::UnicastPacket:

awds::SrcPacket

List of all members.

Public Member Functions

 UnicastPacket (BasePacket &p)
int getTTL ()
void setTTL (int ttl)
void decrTTL ()
void incTTL ()
NodeId getUcDest () const
void setUcDest (const NodeId &id)
NodeId getNextHop () const
void setNextHop (const NodeId &id)
int getUcPacketType () const
void setUcPacketType (int type)

Static Public Attributes

static const size_t OffsetUcDest = SrcPacketEnd
static const size_t OffsetNextHop = OffsetUcDest + NodeId::size
static const size_t OffsetTTL = OffsetNextHop + NodeId::size
static const size_t OffsetUcType = OffsetTTL + 1
static const size_t UnicastPacketEnd = OffsetUcType + 1


Detailed Description

The access class for unicast packets.

  awds::BasePacket *p = getPacketFromSomewhere();
  awds::UnicastPacket unicastP(*p);
  unicastP.setUcDest(destination);

The documentation for this class was generated from the following file:
Generated on Tue Dec 11 17:58:49 2007 for AWDS by  doxygen 1.5.3-20071008