awds::BasePacket Class Reference

base data structure for representing packets. More...

#include <BasePacket.h>

List of all members.

Public Member Functions

int send (gea::Handle *h)
int receive (gea::Handle *h)
int ref ()
 increase the reference counter.
int unref ()
 decrease the reference counter.
PacketType getType () const
void setType (PacketType pt)
void setDest (const NodeId &dest)

Public Attributes

char buffer [MaxSize]
size_t size
int refcount
NodeId dest

Static Public Attributes

static const int MaxSize = 0x1000


Detailed Description

base data structure for representing packets.

The BasePacket class is used for holding the data of a packet.


Member Function Documentation

int awds::BasePacket::unref (  )  [inline]

decrease the reference counter.

This method decreases the reference counter. When its value becomes zero, the packet is automatically deallocated.

See also:
awds::BasePacket::ref()


Member Data Documentation

const int awds::BasePacket::MaxSize = 0x1000 [static]

The maximum number of bytes per packet

char awds::BasePacket::buffer[MaxSize]

the buffer with the actual data

size_t awds::BasePacket::size

the number of bytes in the packet, including all headers

int awds::BasePacket::refcount

the refcount is used for memory management.

See also:
BasePacket::ref()

BasePacket::unref()


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