|
INET Framework for OMNeT++/OMNEST
|
#include <TrafGen.h>
Public Member Functions | |
| FlowRecord () | |
| std::string | getId () |
| void | setId (std::string n_id) |
| double | getStartTime () |
| void | setStartTime (double n_startTime) |
| double | getDuration () |
| void | setDuration (double n_duration) |
| IPvXAddress | getSrcIP () |
| void | setSrcIP (IPvXAddress n_srcIP) |
| IPvXAddress | getDstIP () |
| void | setDstIP (IPvXAddress n_dstIP) |
| unsigned char | getTos () |
| void | setTos (unsigned char n_tos) |
| short | getTtl () |
| void | setTtl (short n_ttl) |
| short | getProtocol () |
| void | setProtocol (short n_protocol) |
| int | getSrcPort () |
| void | setSrcPort (int n_srcPort) |
| int | getDstPort () |
| void | setDstPort (int n_dstPort) |
| ITrafGenApplication * | getPApplication () |
| std::string | getAppName () |
| bool | setApplication (const cXMLElement &appConfig) |
| bool | isGenerating () |
| void | setGenerating (bool n_gen) |
| bool | isAnalyzing () |
| void | setAnalyzing (bool n_ana) |
| RcvStats::iterator | getRcvModStatsIt () |
| void | setRcvModStatsIt (RcvStats::iterator n_it) |
| void | tcpConnect (cGate *toTcp) |
| void | tcpClose () |
| void | sendTcpPacket (cMessage *msg) |
| bool | isSocketCreated () |
| bool | isTcpConnected () |
| int | getSocketConId () |
Private Attributes | |
| std::string | id |
| double | startTime |
| double | duration |
| IPvXAddress | srcIP |
| IPvXAddress | dstIP |
| unsigned char | tos |
| short | ttl |
| short | protocol |
| int | srcPort |
| int | dstPort |
| std::string | appName |
| ITrafGenApplication * | pApplication |
| bool | generating |
| bool | analyzing |
| RcvStats::iterator | rcvModStatsIt |
| TCPSocket * | socket |
Definition at line 834 of file TrafGen.cc.
| std::string TG::FlowRecord::getAppName | ( | ) | [inline] |
| IPvXAddress TG::FlowRecord::getDstIP | ( | ) | [inline] |
| int TG::FlowRecord::getDstPort | ( | ) | [inline] |
| double TG::FlowRecord::getDuration | ( | ) | [inline] |
| std::string TG::FlowRecord::getId | ( | ) | [inline] |
| ITrafGenApplication* TG::FlowRecord::getPApplication | ( | ) | [inline] |
Definition at line 174 of file TrafGen.h.
{return pApplication;}
| short TG::FlowRecord::getProtocol | ( | ) | [inline] |
| RcvStats::iterator TG::FlowRecord::getRcvModStatsIt | ( | ) | [inline] |
Definition at line 183 of file TrafGen.h.
{return rcvModStatsIt;}
| int TG::FlowRecord::getSocketConId | ( | ) | [inline] |
Definition at line 191 of file TrafGen.h.
{return socket->getConnectionId();}
| IPvXAddress TG::FlowRecord::getSrcIP | ( | ) | [inline] |
| int TG::FlowRecord::getSrcPort | ( | ) | [inline] |
| double TG::FlowRecord::getStartTime | ( | ) | [inline] |
| unsigned char TG::FlowRecord::getTos | ( | ) | [inline] |
| short TG::FlowRecord::getTtl | ( | ) | [inline] |
| bool TG::FlowRecord::isAnalyzing | ( | ) | [inline] |
| bool TG::FlowRecord::isGenerating | ( | ) | [inline] |
Definition at line 178 of file TrafGen.h.
{return generating; }
| bool TG::FlowRecord::isSocketCreated | ( | ) | [inline] |
| bool TG::FlowRecord::isTcpConnected | ( | ) | [inline] |
Definition at line 190 of file TrafGen.h.
{ return (this->isSocketCreated() && socket->getState() != TCPSocket::CONNECTED); }
| void TG::FlowRecord::sendTcpPacket | ( | cMessage * | msg | ) | [inline] |
| void TG::FlowRecord::setAnalyzing | ( | bool | n_ana | ) | [inline] |
| bool TG::FlowRecord::setApplication | ( | const cXMLElement & | appConfig | ) |
Definition at line 860 of file TrafGen.cc.
Referenced by TrafGen::parseFlow().
| void TG::FlowRecord::setDstIP | ( | IPvXAddress | n_dstIP | ) | [inline] |
| void TG::FlowRecord::setDstPort | ( | int | n_dstPort | ) | [inline] |
Definition at line 172 of file TrafGen.h.
Referenced by TrafGen::parseFlow().
{dstPort = n_dstPort;}
| void TG::FlowRecord::setDuration | ( | double | n_duration | ) | [inline] |
Definition at line 158 of file TrafGen.h.
Referenced by TrafGen::parseFlow().
{duration = n_duration;}
| void TG::FlowRecord::setGenerating | ( | bool | n_gen | ) | [inline] |
Definition at line 179 of file TrafGen.h.
{generating = n_gen;}
| void TG::FlowRecord::setId | ( | std::string | n_id | ) | [inline] |
| void TG::FlowRecord::setProtocol | ( | short | n_protocol | ) | [inline] |
Definition at line 168 of file TrafGen.h.
Referenced by TrafGen::parseFlow().
{protocol = n_protocol;}
| void TG::FlowRecord::setRcvModStatsIt | ( | RcvStats::iterator | n_it | ) | [inline] |
Definition at line 184 of file TrafGen.h.
{rcvModStatsIt = n_it;}
| void TG::FlowRecord::setSrcIP | ( | IPvXAddress | n_srcIP | ) | [inline] |
| void TG::FlowRecord::setSrcPort | ( | int | n_srcPort | ) | [inline] |
Definition at line 170 of file TrafGen.h.
Referenced by TrafGen::parseFlow().
{srcPort = n_srcPort;}
| void TG::FlowRecord::setStartTime | ( | double | n_startTime | ) | [inline] |
Definition at line 156 of file TrafGen.h.
Referenced by TrafGen::parseFlow().
{startTime = n_startTime;}
| void TG::FlowRecord::setTos | ( | unsigned char | n_tos | ) | [inline] |
| void TG::FlowRecord::setTtl | ( | short | n_ttl | ) | [inline] |
| void TG::FlowRecord::tcpClose | ( | ) | [inline] |
| void TG::FlowRecord::tcpConnect | ( | cGate * | toTcp | ) |
Definition at line 877 of file TrafGen.cc.
bool TG::FlowRecord::analyzing [private] |
Definition at line 143 of file TrafGen.h.
Referenced by FlowRecord(), isAnalyzing(), and setAnalyzing().
std::string TG::FlowRecord::appName [private] |
Definition at line 139 of file TrafGen.h.
Referenced by getAppName().
IPvXAddress TG::FlowRecord::dstIP [private] |
Definition at line 132 of file TrafGen.h.
Referenced by FlowRecord(), getDstIP(), and setDstIP().
int TG::FlowRecord::dstPort [private] |
Definition at line 137 of file TrafGen.h.
Referenced by FlowRecord(), getDstPort(), and setDstPort().
double TG::FlowRecord::duration [private] |
Definition at line 130 of file TrafGen.h.
Referenced by FlowRecord(), getDuration(), and setDuration().
bool TG::FlowRecord::generating [private] |
Definition at line 142 of file TrafGen.h.
Referenced by FlowRecord(), isGenerating(), and setGenerating().
std::string TG::FlowRecord::id [private] |
ITrafGenApplication* TG::FlowRecord::pApplication [private] |
Definition at line 140 of file TrafGen.h.
Referenced by FlowRecord(), and getPApplication().
short TG::FlowRecord::protocol [private] |
Definition at line 135 of file TrafGen.h.
Referenced by FlowRecord(), getProtocol(), and setProtocol().
RcvStats::iterator TG::FlowRecord::rcvModStatsIt [private] |
Definition at line 145 of file TrafGen.h.
Referenced by getRcvModStatsIt(), and setRcvModStatsIt().
TCPSocket* TG::FlowRecord::socket [private] |
Definition at line 147 of file TrafGen.h.
Referenced by FlowRecord(), getSocketConId(), isSocketCreated(), isTcpConnected(), sendTcpPacket(), and tcpClose().
IPvXAddress TG::FlowRecord::srcIP [private] |
Definition at line 131 of file TrafGen.h.
Referenced by FlowRecord(), getSrcIP(), and setSrcIP().
int TG::FlowRecord::srcPort [private] |
Definition at line 136 of file TrafGen.h.
Referenced by FlowRecord(), getSrcPort(), and setSrcPort().
double TG::FlowRecord::startTime [private] |
Definition at line 129 of file TrafGen.h.
Referenced by FlowRecord(), getStartTime(), and setStartTime().
unsigned char TG::FlowRecord::tos [private] |
Definition at line 133 of file TrafGen.h.
Referenced by FlowRecord(), getTos(), and setTos().
short TG::FlowRecord::ttl [private] |
Definition at line 134 of file TrafGen.h.
Referenced by FlowRecord(), getTtl(), and setTtl().