#include <uan-phy.h>
Collaboration diagram for PktHandler:
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. |
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.
void PktHandler::handle | ( | Event * | e | ) |
Event handler that updates PktList and frees PacketInfo memory.
e | An Event * pointer that will be cast to PacketInfo * |