ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Packet Class Reference

#include <packet.h>

Inheritance diagram for Packet:

Event List of all members.

Public Member Functions

 Packet ()
unsigned char *const bits ()
Packet * copy () const
Packet * refcopy ()
int & ref_count ()
void allocdata (int)
void initdata ()
unsigned char * access (int off) const
unsigned char * accessdata () const
AppDatauserdata () const
void setdata (AppData *d)
int datalen () const

Static Public Member Functions

Packet * alloc ()
Packet * alloc (int)
void free (Packet *)
void dump_header (Packet *p, int offset, int length)

Public Attributes

Packet * next_
PacketStamp txinfo_
u_int8_t incoming

Static Public Attributes

int hdrlen_ = 0

Protected Attributes

int ref_count_

Static Protected Attributes

Packet * free_

Static Private Member Functions

void init (Packet *)

Private Attributes

unsigned char * bits_
AppDatadata_
bool fflag_

Constructor & Destructor Documentation

Packet::Packet   [inline]
 


Member Function Documentation

unsigned char* Packet::access int    off const [inline]
 

unsigned char* Packet::accessdata   const [inline]
 

Packet * Packet::alloc int    [inline, static]
 

Packet * Packet::alloc   [inline, static]
 

void Packet::allocdata int    [inline]
 

unsigned char* const Packet::bits   [inline]
 

Packet * Packet::copy   const [inline]
 

int Packet::datalen   const [inline]
 

void Packet::dump_header Packet *    p,
int    offset,
int    length
[inline, static]
 

void Packet::free Packet *    [inline, static]
 

void Packet::init Packet *    [inline, static, private]
 

void Packet::initdata   [inline]
 

int& Packet::ref_count   [inline]
 

Packet* Packet::refcopy   [inline]
 

void Packet::setdata AppData   d [inline]
 

AppData* Packet::userdata   const [inline]
 


Member Data Documentation

unsigned char* Packet::bits_ [private]
 

AppData* Packet::data_ [private]
 

bool Packet::fflag_ [private]
 

Packet * Packet::free_ [static, protected]
 

int Packet::hdrlen_ = 0 [static]
 

u_int8_t Packet::incoming
 

Packet* Packet::next_
 

Reimplemented from Event.

int Packet::ref_count_ [protected]
 

PacketStamp Packet::txinfo_
 


The documentation for this class was generated from the following files:
This document is generated by doxygen.