Main Page | Modules | Class Hierarchy | Class List | Directories | Class Members | Related Pages | Examples

FilteredPacketListener Class Reference
[Network Data Structures]

PacketListener that checks the packet against a filter before passing it along to the listening object. More...

#include <PacketListener.h>

Inheritance diagram for FilteredPacketListener:

PacketListener Attribute ProtocolParser ArrayAttribute< T > AttributeFunction HistogramAttribute< T > ScalarAttribute< T > ScalarAttribute< int > ScalarAttribute< resType > ScalarAttribute< Timeval > SetAttribute SingleOutputParser StreamedOutputParser List of all members.

Public Member Functions

virtual FilteredPacketListeneroperator= (const PacketListener &rhs)
virtual void handlePacket (TraceIterator &newPkt)
virtual void handlePassedPacket (TraceIterator &newPkt)=0

Protected Member Functions

 FilteredPacketListener (void)
 FilteredPacketListener (const PacketFilter &f)
 FilteredPacketListener (const FilteredPacketListener &toCopy)

Detailed Description

PacketListener that checks the packet against a filter before passing it along to the listening object.

Constructor & Destructor Documentation

FilteredPacketListener::FilteredPacketListener void   )  [protected]

create a FilteredPacketListener with a NULL filter - works the same as a normal PacketFilter except that you need to override handlePassedPacket() instead of handlePacket().

FilteredPacketListener::FilteredPacketListener const PacketFilter f  )  [protected]

create a FilteredPacketListener with a given filter

Member Function Documentation

void FilteredPacketListener::handlePacket TraceIterator newPkt  )  [virtual]

checks the packet against the filter and calls handlePassedPacket if it passes or if the filter is NULL

Implements PacketListener.

virtual void FilteredPacketListener::handlePassedPacket TraceIterator newPkt  )  [pure virtual]

template method - override in subclasses

Implemented in ArithmeticAttribute< lType, rType, resType >, ByteCountAttribute, ConversationTrackerAttribute, DurationAttribute, HistogramAttribute< T >, MemoryAttribute< T >, PacketDrivenMemoryAttribute< T >, SampledMemoryAttribute< T >, PacketCountAttribute, SumAttribute< T >, Attribute, IPv4Demux, IPv4Sessionizer, ProtocolParser, SingleOutputParser, StreamedOutputParser, SimpleTCPParser, StreamedTCPParser, and StreamedUDPParser.

The documentation for this class was generated from the following files:
Generated on Thu Apr 5 01:02:37 2007 for ANTARES by  doxygen 1.4.2