class <Trace> Trace : public Connector


Inheritance:


Public Fields

Trace instvar dst_
Trace instvar fp_
int off_ip_
int off_rtp_
int off_srm_
int off_tcp_
Trace instvar src_
Trace instvar type_

Public Methods

Trace instproc attach fp
inline char* buffer()
int command(int argc, const char*const* argv)
void dump()
Trace instproc format args
Trace instproc init type
void namdump()
void recv(Packet* p, Handler*)
static double round(double x, double precision=PRECISION)
annoying way of tackling sprintf rounding platform differences : use round(Scheduler::instance().clock()) instead of Scheduler::instance().clock().
void trace(TracedVar*)
Trace(int type)
virtual void write_nam_trace(const char *s)
~Trace()

Public

#define PRECISION
Default rounding is to 6 digits after decimal
#define TIME_FORMAT
According to freeBSD /usr/include/float.h 15 is the number of digits in a double. We can specify all of them, because we're rounding to 6 digits after the decimal and and %g removes trailing zeros.

Protected Fields

int callback_
Tcl_Channel channel_
nsaddr_t dst_
Tcl_Channel namChan_
char nwrk_[256]
int show_tcphdr_
bool flags; backward compat
nsaddr_t src_
int type_
char wrk_[1024]

Protected Methods

void annotate(const char* s)
virtual void format(int tt, int s, int d, Packet* p)

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

int type_

nsaddr_t src_

nsaddr_t dst_

Tcl_Channel channel_

int callback_

Tcl_Channel namChan_

char nwrk_[256]

char wrk_[1024]

virtual void format(int tt, int s, int d, Packet* p)

void annotate(const char* s)

int show_tcphdr_
bool flags; backward compat

Trace(int type)

~Trace()

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

void recv(Packet* p, Handler*)

void trace(TracedVar*)

void dump()

inline char* buffer()

#define PRECISION
Default rounding is to 6 digits after decimal

#define TIME_FORMAT
According to freeBSD /usr/include/float.h 15 is the number of digits in a double. We can specify all of them, because we're rounding to 6 digits after the decimal and and %g removes trailing zeros.

static double round(double x, double precision=PRECISION)
annoying way of tackling sprintf rounding platform differences : use round(Scheduler::instance().clock()) instead of Scheduler::instance().clock().

virtual void write_nam_trace(const char *s)

void namdump()

int off_ip_

int off_tcp_

int off_rtp_

int off_srm_

Trace instproc init type

Trace instvar type_

Trace instproc format args

Trace instvar fp_

Trace instvar src_

Trace instvar dst_

Trace instproc attach fp


Direct child classes:
Trace/Var
Trace/SessEnque
Trace/SessDeque
Trace/Recv
Trace/Hop
Trace/Generic
Trace/Enque
Trace/Drop
TraceIp
SatTrace
DequeTrace
CMUTrace

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