#include <BasePacket.h>
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 |
The BasePacket class is used for holding the data of a packet.
| 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.
const int awds::BasePacket::MaxSize = 0x1000 [static] |
The maximum number of bytes per packet
the buffer with the actual data
| size_t awds::BasePacket::size |
the number of bytes in the packet, including all headers
the refcount is used for memory management.
1.5.3-20071008