DropInterface Class Reference

#include <dropinterface.h>

Collaboration diagram for DropInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DropInterface ()
virtual ~DropInterface ()
virtual void recv (Packet *p, Handler *h=0)
virtual int command (int argc, const char *const *argv)

Protected Attributes

LinkChannelModulech_

Detailed Description

The DropInterface class is a NsObject which receives packets and send them to the BIN of the associated Module

Definition at line 47 of file dropinterface.h.


Constructor & Destructor Documentation

DropInterface::DropInterface (  ) 

Class constructor

Definition at line 40 of file dropinterface.cc.

DropInterface::~DropInterface (  )  [virtual]

Class destructor

Definition at line 44 of file dropinterface.cc.


Member Function Documentation

void DropInterface::recv ( Packet *  p,
Handler *  h = 0 
) [virtual]

Entry point for the packets. This metod call the drop method of the associated LinkChannelModule ch_. If threre is not LinkChannelModule associated it free the packet

Parameters:
p packet which can be dropped
h this parameter is not considered

Definition at line 64 of file dropinterface.cc.

References ch_, Module::drop(), DROPINTERFACE_TRACE_DEPTH, and DROPINTERFACE_TRACE_REASON.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:48:30 2008 for NS-MIRACLE library by  doxygen 1.5.2