60 std::ostringstream ss;
62 cMessage* m2 =
new cMessage(ss.str().c_str());
63 scheduleAt(
pingAt + i, m2);
69 cMessage* m3 =
new cMessage(
TIM_STOP);
97 EV <<
"AEName is set to default which is AeErr. AeErr is for special testing purposes. Are you sure that it is right?" << endl;
120 myPath = this->getFullPath();
125 if ( !strcmp(msg->getName(),
TIM_START) ) {
128 else if ( !strcmp(msg->getName(),
TIM_STOP) ) {
131 else if ( strstr(msg->getName(),
MSG_PING) ) {
135 EV << this->getFullPath() <<
" received unknown self-message " << msg->getName();
141 if ( msg->isSelfMessage() )
164 Enter_Method(
"afterConnect()");
191 ping->setByteLength(
size);
207 EV <<
"Received M_Read";
209 EV <<
" with object '" <<
object.
objectClass <<
"'" << endl;
212 std::string* source = (std::string*)(
object.objectVal);
213 std::ostringstream os;
214 os <<
"Ping requested by " << *source << endl;
215 bubble(os.str().c_str());
216 EV << os.str().c_str();
234 EV <<
"Received M_Read_R";
236 EV <<
" with object '" <<
object.
objectClass <<
"'" << endl;
239 std::string* source = (std::string*)(
object.objectVal);
240 std::ostringstream os;
241 os <<
"Ping replied by " << *source << endl;
242 bubble(os.str().c_str());
243 EV << os.str().c_str();
Class representing flow object with attributes from specs.
void setQosRequirements(const QoSReq &qosReqs)
Sets QoS parameters wanted by flow initiator.
void handleSelfMessage(cMessage *msg)
::omnetpp::opp_string objectClass
const char * PAR_DSTAPINSTANCE
simsignal_t sigAEEnrolled
void prepareAllocateRequest()
virtual object_t & getObjectItem()
std::string dstApInstance
CDAPConnectionState connectionState
Application Process Name class.
const APNamingInfo & getApni() const
std::string srcAeInstance
virtual void processMReadR(CDAPMessage *msg)
virtual void setObjectItem(const object_t &objectItem)
const char * PAR_DSTAPNAME
APNamingInfo holds complete naming info for particular application process.
const char * PAR_DSTAEINSTANCE
void initQoSRequiremets()
const char * VAL_MODULEPATH
const char * PAR_DSTAENAME
virtual void handleMessage(cMessage *msg)
void sendDeallocationRequest(Flow *flow)
void prepareDeallocateRequest()
virtual void processMRead(CDAPMessage *msg)
virtual void afterOnStart()
const QoSReq & getQoSRequirements() const
void initSignalsAndListeners()
std::string srcApInstance
::omnetpp::opp_string objectName
void sendData(Flow *flow, CDAPMessage *msg)
virtual object_t & getObjectItem()
void sendAllocationRequest(Flow *flow)
virtual void initialize()
virtual void setObjectItem(const object_t &objectItem)
std::string dstAeInstance