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

SessionKey Class Reference

StreamKey used to decompose an Aggregate by transport-layer session. More...

#include <SessionKey.h>

Inheritance diagram for SessionKey:

StreamKey List of all members.

Public Member Functions

 SessionKey (const StreamKey &trans, uint32_t source, uint32_t dest)
 SessionKey (const SessionKey &toCopy)
virtual SessionKeyclone (void) const
virtual bool operator== (const StreamKey &rhs) const
virtual bool operator< (const StreamKey &rhs) const
virtual const PacketAttributeValuegetAttrib (const PacketAttribute &attrib) const throw ( UnknownAttributeException )
virtual std::string toString (void) const
virtual bool isBidirectional (void) const
 Does the stream represent both sides of a bidirectional flow?
virtual uint32_t getDirection (const TraceIterator &packet) const
 determine the direction of a packet relative to a bidirectional StreamKey

Static Public Attributes

static const uint32_t DIR_FORWARD = 0
static const uint32_t DIR_REVERSE = 1

Detailed Description

StreamKey used to decompose an Aggregate by transport-layer session.

Attributes

Available attributes from a SessionKey:


Member Function Documentation

const PacketAttributeValue & SessionKey::getAttrib const PacketAttribute attrib  )  const throw ( UnknownAttributeException ) [virtual]
 

operator> provided to support fast searching in a data structure

Implements StreamKey.

uint32_t StreamKey::getDirection const TraceIterator packet  )  const [virtual, inherited]
 

determine the direction of a packet relative to a bidirectional StreamKey

Returns:
StreamKey::DIR_FORWARD if the packet is in the forward direction (always true for a unidirectional StreamKey), StreamKey::DIR_REVERSE if it is in the reverse direction
Todo:
Possible support for StreamKeys with more than two directions?

Reimplemented in FullIPv4SessionKey, IPv4Key, and TransportKey.

bool SessionKey::operator< const StreamKey rhs  )  const [virtual]
 

operator< provided to support fast searching in a data structure

Implements StreamKey.

bool SessionKey::operator== const StreamKey rhs  )  const [virtual]
 

compare two StreamKeys for equality

Implements StreamKey.


Member Data Documentation

const uint32_t StreamKey::DIR_FORWARD = 0 [static, inherited]
 

Last type identifier used by a StreamKey subclass; a new StreamKey should use a type identifier one greater than this.


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