Public Member Functions

I3SessionClientStarter Class Reference

Inheritance diagram for I3SessionClientStarter:
I3SessionClient I3BaseApp

List of all members.

Public Member Functions

void initializeI3 ()
 Application I3 initialize - should be overwritten by application.

Detailed Description

Definition at line 238 of file I3Session.cc.


Member Function Documentation

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);
}


The documentation for this class was generated from the following file: