PktHandler Class Reference

Class that handles events caused by packets finishing their crossing of a node's hydraphone. More...

#include <uan-phy.h>

Collaboration diagram for PktHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PktHandler (UanPhy *p)
 Construct PktHandler and set link to phy.
void handle (Event *e)
 Event handler that updates PktList and frees PacketInfo memory.

Protected Attributes

UanPhy * phy
 Phy layer that this class is associated with.

Detailed Description

Class that handles events caused by packets finishing their crossing of a node's hydraphone.

This class inherrits from Handler. It simple handles a single event. The handle function removes the pointer to a PacketInfo class from the pktList in the PHY class. It then frees the memory used by the PacketInfo class.


Member Function Documentation

void PktHandler::handle ( Event *  e  ) 

Event handler that updates PktList and frees PacketInfo memory.

Parameters:
e An Event * pointer that will be cast to PacketInfo *
Frees the memory being occupied by the PacketInfo e, and removes the PacketInfo e from phy->pktList


The documentation for this class was generated from the following files:
Generated on Mon Oct 1 12:12:46 2007 for UANModule by  doxygen 1.5.1