49 dstApName = this->par(
"dstApName").stringValue();
51 dstAeName = this->par(
"dstAeName").stringValue();
54 signal = registerSignal(
"AEConstantPing-RCV");
57 simtime_t startAt = simTime() + par(
"startAt");
58 if(startAt<0) { startAt = 0; }
59 scheduleAt(startAt,
new cMessage(
"Start"));
65 EV <<
"Flow not initialized :" << endl;
70 EV <<
"\t" << src <<
" -> " << dst << endl;
75 if(
StartMsg* m = dynamic_cast<StartMsg*>(msg)) {
79 scheduleAt(simTime()+1, m);
93 scheduleAt(simTime()+1,
new StartMsg());
99 if ( msg->isSelfMessage() ) {
101 }
else if(
PingMsg* m = dynamic_cast<PingMsg*>(msg)) {
107 r->setByteLength(m->getByteLength());
110 std::cout <<
"Unknown msg received" << endl;
virtual void processMRead(CDAPMessage *msg)
Class representing flow object with attributes from specs.
void setQosRequirements(const QoSReq &qosReqs)
Sets QoS parameters wanted by flow initiator.
virtual void initialize()
std::string dstApInstance
CDAPConnectionState connectionState
Application Process Name class.
const APNamingInfo & getApni() const
std::string getQoSId() const
Getter of selected QoS-cube identifier.
void handleSelfMessage(cMessage *msg)
virtual void processMReadR(CDAPMessage *msg)
const int VAL_UNDEF_CEPID
APNamingInfo holds complete naming info for particular application process.
std::string dstAeInstance
void initQoSRequiremets()
int getDstCepId() const
Getter of destination Connection-Endpoint identifier.
const ConnectionId & getConId() const
Gets read-only Flow's ConnectionId.
const QoSReq & getQoSRequirements() const
Define_Module(AEConstantClient)
void initSignalsAndListeners()
void sendData(Flow *flow, CDAPMessage *msg)
virtual ~AEConstantClient()
void sendAllocationRequest(Flow *flow)
virtual void handleMessage(cMessage *msg)