class rtqueue : public Connector


Inheritance:


Public Methods

inline int command(int argc, const char * const* argv)
Packet* deque(void)
Returns a packet from the head of the queue
Packet* deque(nsaddr_t dst)
Returns a packet for destination "D"
void enque(Packet *p)
char find(nsaddr_t dst)
Finds whether a packet with destination dst exists in the queue
void recv(Packet *, Handler*)
rtqueue()

Private Fields

Packet* head_
int len_
int limit_
Packet* tail_
double timeout_

Private Methods

void findPacketWithDst(nsaddr_t dst, Packet*& p, Packet*& prev)
void purge(void)
Packet* remove_head()
void verifyQueue(void)

Inherited from Connector:

Public Methods

virtual void drop(Packet* p)
inline NsObject* target()

Protected Fields

NsObject* drop_
NsObject* target_

Protected Methods

virtual void drop(Packet* p, const char *s)
inline void send(Packet* p, Handler* h)

Inherited from NsObject:

Public Methods

virtual void debug(const char *fmt, ...)
virtual int delay_bind_dispatch(const char *varName, const char *localName, TclObject *tracer)
virtual void delay_bind_init_all()
int isdebug()

Protected Fields

int debug_
int off_cmn_
int off_flags_

Protected Methods

void handle(Event*)
virtual void reset()

Inherited from Handler:


Documentation

rtqueue()

void recv(Packet *, Handler*)

void enque(Packet *p)

inline int command(int argc, const char * const* argv)

Packet* deque(void)
Returns a packet from the head of the queue

Packet* deque(nsaddr_t dst)
Returns a packet for destination "D"

char find(nsaddr_t dst)
Finds whether a packet with destination dst exists in the queue

Packet* remove_head()

void purge(void)

void findPacketWithDst(nsaddr_t dst, Packet*& p, Packet*& prev)

void verifyQueue(void)

Packet* head_

Packet* tail_

int len_

int limit_

double timeout_


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de