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.
00246 { 00247 I3SessionClient::initializeI3(); 00248 00249 /* start session */ 00250 insertTrigger(clientIdentifier, int(par("sessionMobilityType")) != DONT_REMOVE); // renew only if type != DONT_REMOVE 00251 holdsSession = true; 00252 00253 SessionMsg *newMsg = new SessionMsg(); 00254 newMsg->setType(PAYLOAD); 00255 newMsg->setValue(0); 00256 sendPacket(serverIdentifier, newMsg); 00257 00258 cMessage *msg = new cMessage(); 00259 msg->setKind(TYPE_CHANGE_SESSION); 00260 00261 std::cout << "Started starts" << endl; 00262 scheduleAt(simTime() + int(par("sessionTime")), msg); 00263 }