User Manual, Developers Guide and API Documentation

constanze::Listener Class Reference

this class receives traffic from the peer

#include <Listener.hpp>

Collaboration diagram for constanze::Listener:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Listener (const wns::pyconfig::View &_pyco, wns::node::component::Interface *component)
void onData (const wns::osi::PDUPtr &_data)
 handle incoming traffic from the peer
virtual std::string printAddress () const
void registerBinding (constanze::Binding *_binding)
 ~Listener ()

Private Attributes

constanze::Bindingbinding
 binding to a socket with ip address
long unsigned int bitCounter
 count bits
wns::probe::bus::ContextCollectorPtr bitsRateProbe
wns::probe::bus::ContextCollectorPtr bitsWindowedRateProbe
OneLiner bitsWindowedResult
 helpers for text putting into probes
simTimeType currentWindowEnd
 time at which the averaging window ends
wns::probe::bus::ContextCollectorPtr delayProbe
std::string domainName
 domainName
bool doMMPPestimation
 if true, do estimation of MMPP states. Toggle on in Node.py
wns::logger::Logger log
 Logger.
Measurementmeasurement
 class for doing measurements based on rate(time)
std::vector< int > * observationVector
 vector of observations [wez]
long unsigned int packetCounter
 count packets
wns::probe::bus::ContextCollectorPtr packetRateProbe
wns::probe::bus::ContextCollectorPtr packetWindowedRateProbe
OneLiner packetWindowedResult
wns::pyconfig::View pyco
 Python view.
wns::probe::bus::ContextCollectorPtr sizeProbe
 Probe Front-ends.
int stateLevel
 control step identification
long unsigned int windowedBitCounter
 count bits in current window
long unsigned int windowedPacketCounter
 count packets in current window
double windowSize
 windowed probes calculate rate values averaged over this time

Friends

std::ostream & operator<< (std::ostream &os, const Listener &l)


Detailed Description

Definition at line 76 of file Listener.hpp.


Constructor & Destructor Documentation

Listener::Listener ( const wns::pyconfig::View _pyco,
wns::node::component::Interface component 
)

Definition at line 34 of file Listener.cpp.

Listener::~Listener (  ) 

Definition at line 83 of file Listener.cpp.


Member Function Documentation

void Listener::onData ( const wns::osi::PDUPtr _data  ) 

Definition at line 108 of file Listener.cpp.

std::string Listener::printAddress (  )  const [virtual]

Definition at line 199 of file Listener.cpp.

void Listener::registerBinding ( constanze::Binding _binding  ) 

Definition at line 193 of file Listener.cpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Listener l 
) [friend]

Definition at line 94 of file Listener.hpp.


Member Data Documentation

Definition at line 111 of file Listener.hpp.

long unsigned int constanze::Listener::bitCounter [private]

Definition at line 152 of file Listener.hpp.

Definition at line 139 of file Listener.hpp.

Definition at line 141 of file Listener.hpp.

Definition at line 146 of file Listener.hpp.

Definition at line 158 of file Listener.hpp.

Definition at line 143 of file Listener.hpp.

std::string constanze::Listener::domainName [private]

Definition at line 108 of file Listener.hpp.

Definition at line 131 of file Listener.hpp.

Definition at line 105 of file Listener.hpp.

Definition at line 116 of file Listener.hpp.

Todo:
put into Measurement.hpp [rs]

Definition at line 135 of file Listener.hpp.

long unsigned int constanze::Listener::packetCounter [private]

Definition at line 150 of file Listener.hpp.

Definition at line 140 of file Listener.hpp.

Definition at line 142 of file Listener.hpp.

Definition at line 147 of file Listener.hpp.

Definition at line 102 of file Listener.hpp.

Definition at line 138 of file Listener.hpp.

Definition at line 121 of file Listener.hpp.

Definition at line 156 of file Listener.hpp.

Definition at line 154 of file Listener.hpp.

Definition at line 126 of file Listener.hpp.


The documentation for this class was generated from the following files:

Generated on Sat May 26 03:32:29 2012 for openWNS by  doxygen 1.5.5