Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

SrcSink Class Reference

#include <netelem.h>

Inheritance diagram for SrcSink:

PacketSink NetElement List of all members.

Public Member Functions

virtual void Recv (timeunits now, Packet *p)
virtual void FragmentDrop (Packet *p)
void Reset (bool dump=false)

Detailed Description

Source sink. More sophisticated sink, keeps per-source count of received packets and fragments, as well as delay statistics.


Member Function Documentation

void SrcSink::FragmentDrop Packet p  )  [virtual]
 

Similar to SrcSink::Recv(void), needs to be called for dropped packets. This enables keeping count of lost framents, and avoids waiting to complete for a packet with a lost fragment. per-source count of received packets and fragments.

Parameters:
p pointer to the packet to be dropped.

Reimplemented from NetElement.

void SrcSink::Recv timeunits  now,
Packet p
[virtual]
 

Keeps count of number of received fragments and complete packets, then delete the packet.

Parameters:
now current time, needed to compute the packet's delay.
p pointer to the packet to be deleted.

Reimplemented from PacketSink.

void SrcSink::Reset bool  dump = false  )  [virtual]
 

Resets counters of complete and incomplete packets and fragments.

Reimplemented from PacketSink.


The documentation for this class was generated from the following files:
Generated on Fri Jan 19 15:35:17 2007 by  doxygen 1.4.2