Public Member Functions | |
void | initializeI3 () |
Application I3 initialize - should be overwritten by application. |
void I3SessionClientStarter::initializeI3 | ( | ) | [virtual] |
Application I3 initialize - should be overwritten by application.
Reimplemented from I3SessionClient.
00243 { 00244 I3SessionClient::initializeI3(); 00245 00246 /* start session */ 00247 insertTrigger(clientIdentifier, int(par("sessionMobilityType")) != DONT_REMOVE); // renew only if type != DONT_REMOVE 00248 holdsSession = true; 00249 00250 SessionMsg *newMsg = new SessionMsg(); 00251 newMsg->setType(PAYLOAD); 00252 newMsg->setValue(0); 00253 sendPacket(serverIdentifier, newMsg); 00254 00255 cMessage *msg = new cMessage(); 00256 msg->setKind(TYPE_CHANGE_SESSION); 00257 00258 std::cout << "Started starts" << endl; 00259 scheduleAt(simulation.simTime() + int(par("sessionTime")), msg); 00260 }