|
INET Framework for OMNeT++/OMNEST
|
#include <TrafGen.h>
Public Member Functions | |
| ~TrafGen () | |
| unsigned char | getDscpByFlowInfo (IPAddress &srcAdd, IPAddress &destAdd, short prot, int srcPort, int destPort) |
| short | getTtlByFlowInfo (IPAddress &srcAdd, IPAddress &destAdd, short prot, int srcPort, int destPort) |
| void | updateSentStats (cPacket *payload) |
Protected Member Functions | |
| cPacket * | createPacket (TG::Flows::iterator flowIt) |
| bool | sendPacket (TG::Flows::iterator flowIt) |
| void | processPacket (cMessage *msg) |
| bool | LoadFlowsFromXML (const char *filename) |
| void | parseFlow (const cXMLElement &flowConfig) |
| bool | isValidFlow (TG::FlowRecord &flw) |
| unsigned char | readDscp (std::string dscpString) |
| void | detectRoles () |
| void | installRcvStatIts () |
| void | initTimers () |
| void | bindSockets () |
| void | initStats () |
| bool | isLocalTcpOrig (int id) |
| bool | isListening (short prot, int port) |
| void | updateActVectorStats () |
| TG::Flows::iterator | getFlowById (std::string s_id) |
| TG::SntStats::iterator | getSntFlowStatById (std::string s_id) |
| TG::RcvStats::iterator | getRcvFlowStatById (std::string r_id) |
| virtual int | numInitStages () const |
| virtual void | initialize (int stage) |
| virtual void | handleMessage (cMessage *msg) |
| virtual void | finish () |
Protected Attributes | |
| TG::Flows | flows |
| TG::SntStats | sentStatistics |
| TG::RcvStats | receivedStatistics |
| std::vector< int > | tcpListenPort |
| std::vector< int > | udpListenPort |
| std::map< std::string, cOutVector * > | actBitrateVec |
| std::map< std::string, cOutVector * > | actPacketrateVec |
| int | numSent |
| int | numReceived |
| int | counter |
Definition at line 908 of file TrafGen.cc.
| void TrafGen::bindSockets | ( | ) | [protected] |
Definition at line 313 of file TrafGen.cc.
Referenced by initialize().
| cPacket * TrafGen::createPacket | ( | TG::Flows::iterator | flowIt | ) | [protected] |
Definition at line 385 of file TrafGen.cc.
Referenced by sendPacket().
| void TrafGen::detectRoles | ( | ) | [protected] |
Definition at line 242 of file TrafGen.cc.
Referenced by initialize().
| void TrafGen::finish | ( | ) | [protected, virtual] |
Definition at line 567 of file TrafGen.cc.
| unsigned char TrafGen::getDscpByFlowInfo | ( | IPAddress & | srcAdd, |
| IPAddress & | destAdd, | ||
| short | prot, | ||
| int | srcPort, | ||
| int | destPort | ||
| ) |
Definition at line 734 of file TrafGen.cc.
Referenced by DscpTtlCorrector::handleMessage().
| TG::Flows::iterator TrafGen::getFlowById | ( | std::string | s_id | ) | [protected] |
Definition at line 682 of file TrafGen.cc.
Referenced by finish(), handleMessage(), installRcvStatIts(), parseFlow(), processPacket(), and updateSentStats().
| TG::RcvStats::iterator TrafGen::getRcvFlowStatById | ( | std::string | r_id | ) | [protected] |
Definition at line 714 of file TrafGen.cc.
Referenced by installRcvStatIts(), and processPacket().
| TG::SntStats::iterator TrafGen::getSntFlowStatById | ( | std::string | s_id | ) | [protected] |
Definition at line 698 of file TrafGen.cc.
Referenced by updateSentStats().
| short TrafGen::getTtlByFlowInfo | ( | IPAddress & | srcAdd, |
| IPAddress & | destAdd, | ||
| short | prot, | ||
| int | srcPort, | ||
| int | destPort | ||
| ) |
Definition at line 755 of file TrafGen.cc.
Referenced by DscpTtlCorrector::handleMessage().
| void TrafGen::handleMessage | ( | cMessage * | msg | ) | [protected, virtual] |
Definition at line 534 of file TrafGen.cc.
| void TrafGen::initialize | ( | int | stage | ) | [protected, virtual] |
Definition at line 33 of file TrafGen.cc.
| void TrafGen::initStats | ( | ) | [protected] |
Definition at line 279 of file TrafGen.cc.
Referenced by initialize().
| void TrafGen::initTimers | ( | ) | [protected] |
Definition at line 263 of file TrafGen.cc.
Referenced by initialize().
| void TrafGen::installRcvStatIts | ( | ) | [protected] |
Definition at line 352 of file TrafGen.cc.
Referenced by initialize().
| bool TrafGen::isListening | ( | short | prot, |
| int | port | ||
| ) | [protected] |
Definition at line 790 of file TrafGen.cc.
Referenced by bindSockets().
| bool TrafGen::isLocalTcpOrig | ( | int | id | ) | [protected] |
Definition at line 772 of file TrafGen.cc.
Referenced by processPacket().
| bool TrafGen::isValidFlow | ( | TG::FlowRecord & | flw | ) | [protected] |
Definition at line 192 of file TrafGen.cc.
Referenced by parseFlow().
| bool TrafGen::LoadFlowsFromXML | ( | const char * | filename | ) | [protected] |
Definition at line 73 of file TrafGen.cc.
Referenced by initialize().
| virtual int TrafGen::numInitStages | ( | ) | const [inline, protected, virtual] |
| void TrafGen::parseFlow | ( | const cXMLElement & | flowConfig | ) | [protected] |
Definition at line 107 of file TrafGen.cc.
Referenced by LoadFlowsFromXML().
| void TrafGen::processPacket | ( | cMessage * | msg | ) | [protected] |
Definition at line 457 of file TrafGen.cc.
Referenced by handleMessage().
| unsigned char TrafGen::readDscp | ( | std::string | dscpString | ) | [protected] |
Definition at line 214 of file TrafGen.cc.
Referenced by parseFlow().
| bool TrafGen::sendPacket | ( | TG::Flows::iterator | flowIt | ) | [protected] |
Definition at line 407 of file TrafGen.cc.
Referenced by handleMessage().
| void TrafGen::updateActVectorStats | ( | ) | [protected] |
Definition at line 952 of file TrafGen.cc.
Referenced by handleMessage().
| void TrafGen::updateSentStats | ( | cPacket * | payload | ) |
Definition at line 809 of file TrafGen.cc.
Referenced by DscpTtlCorrector::handleMessage().
std::map<std::string, cOutVector*> TrafGen::actBitrateVec [protected] |
Definition at line 256 of file TrafGen.h.
Referenced by initStats().
std::map<std::string, cOutVector*> TrafGen::actPacketrateVec [protected] |
Definition at line 257 of file TrafGen.h.
Referenced by initStats().
int TrafGen::counter [protected] |
Definition at line 261 of file TrafGen.h.
Referenced by initialize().
TG::Flows TrafGen::flows [protected] |
Definition at line 250 of file TrafGen.h.
Referenced by bindSockets(), detectRoles(), getDscpByFlowInfo(), getFlowById(), getTtlByFlowInfo(), initStats(), initTimers(), installRcvStatIts(), isLocalTcpOrig(), LoadFlowsFromXML(), parseFlow(), and processPacket().
int TrafGen::numReceived [protected] |
Definition at line 260 of file TrafGen.h.
Referenced by initialize(), and processPacket().
int TrafGen::numSent [protected] |
Definition at line 259 of file TrafGen.h.
Referenced by initialize(), and updateSentStats().
TG::RcvStats TrafGen::receivedStatistics [protected] |
Definition at line 252 of file TrafGen.h.
Referenced by finish(), getRcvFlowStatById(), initialize(), initStats(), and processPacket().
TG::SntStats TrafGen::sentStatistics [protected] |
Definition at line 251 of file TrafGen.h.
Referenced by getSntFlowStatById(), initialize(), and initStats().
std::vector<int> TrafGen::tcpListenPort [protected] |
Definition at line 253 of file TrafGen.h.
Referenced by bindSockets(), and isListening().
std::vector<int> TrafGen::udpListenPort [protected] |
Definition at line 254 of file TrafGen.h.
Referenced by bindSockets(), and isListening().