#include <bin.h>
Inheritance diagram for Bin:
Public Member Functions | |
Bin () | |
virtual | ~Bin () |
virtual int | command (int argc, const char *const *argv) |
void | drop (Packet *p, int depth, const char *reason="---") |
void | drop (ClMessage *m, const char *reason="---") |
void | handle (Event *e) |
Protected Attributes | |
char | preamble_ [MAX_PREAMBLE_LENGTH] |
int | depth_ |
Definition at line 50 of file bin.h.
Bin::Bin | ( | ) |
int Bin::command | ( | int | argc, | |
const char *const * | argv | |||
) | [virtual] |
TCL command interpreter. It implements the following OTcl methods:
Note that it inherits all the OTcl method of ConnectTrace (not SAP or ClSAP !!!)
argc | number of arguments in argv | |
argv | array of strings which are the comand parameters (Note that argv[0] is the name of the object) |
Reimplemented from ClSAP.
Definition at line 58 of file bin.cc.
References ConnectorTrace::command(), and preamble_.
Here is the call graph for this function:
void Bin::drop | ( | Packet * | p, | |
int | depth, | |||
const char * | reason = "---" | |||
) |
Write the trace for the dropping of a Packet and free the packet
p | pointer of the packet which has to be dropped | |
depth | verbosity of the trace. If this param is less or equal to the depth_ class attribute a new line on the trace file will be add | |
reason | reason for the drop |
Definition at line 69 of file bin.cc.
References ConnectorTrace::debug_, depth_, ConnectorTrace::dump(), SAP::pktTr_, preamble_, PktTracer::trace(), and ConnectorTrace::writeTrace().
Referenced by PlugIn::drop(), and Module::drop().
Here is the call graph for this function:
void Bin::drop | ( | ClMessage * | m, | |
const char * | reason = "---" | |||
) |
Write the trace for the dropping of a cross-layer command message
m | pointer of the ClMessage which has to be dropped | |
reason | reason for the drop |
Definition at line 84 of file bin.cc.
References ConnectorTrace::clTr_, ConnectorTrace::dump(), preamble_, ClTracer::trace(), and ConnectorTrace::writeTrace().
Here is the call graph for this function:
void Bin::handle | ( | Event * | e | ) | [virtual] |
char Bin::preamble_[MAX_PREAMBLE_LENGTH] [protected] |
int Bin::depth_ [protected] |
Reference verbosity level (binded in Tcl)
Reimplemented from ConnectorTrace.