Public Member Functions | |
| void | initializeI3 () |
| Application I3 initialize - should be overwritten by application. | |
Definition at line 238 of file I3Session.cc.
| void I3SessionClientStarter::initializeI3 | ( | ) | [virtual] |
Application I3 initialize - should be overwritten by application.
Reimplemented from I3SessionClient.
Definition at line 246 of file I3Session.cc.
{
I3SessionClient::initializeI3();
/* start session */
insertTrigger(clientIdentifier, int(par("sessionMobilityType")) != DONT_REMOVE); // renew only if type != DONT_REMOVE
holdsSession = true;
SessionMsg *newMsg = new SessionMsg();
newMsg->setType(PAYLOAD);
newMsg->setValue(0);
sendPacket(serverIdentifier, newMsg);
cMessage *msg = new cMessage();
msg->setKind(TYPE_CHANGE_SESSION);
std::cout << "Started starts" << endl;
scheduleAt(simTime() + int(par("sessionTime")), msg);
}
1.7.1