Public Member Functions | |
void | initializeI3 () |
Application I3 initialize - should be overwritten by application. | |
void | deliver (I3Trigger &trigger, I3IdentifierStack &stack, cPacket *msg) |
Delivers packets coming from I3 - should be overwritten by application. | |
void | finish () |
Public Attributes | |
int | numExchanged |
I3Identifier | myIdentifier |
I3Identifier | clientIdentifier |
Definition at line 44 of file I3Session.cc.
void I3SessionServer::deliver | ( | I3Trigger & | trigger, | |
I3IdentifierStack & | stack, | |||
cPacket * | msg | |||
) | [virtual] |
Delivers packets coming from I3 - should be overwritten by application.
trigger | Application trigger to which the packet was sent | |
stack | Identifier stack passed from I3 | |
msg | Arriving message |
Reimplemented from I3BaseApp.
Definition at line 67 of file I3Session.cc.
{ SessionMsg *smsg = check_and_cast<SessionMsg*>(msg); smsg->setValue(smsg->getValue() + 1); numExchanged++; sendPacket(clientIdentifier, smsg); }
void I3SessionServer::finish | ( | ) |
Definition at line 75 of file I3Session.cc.
{ recordScalar("Server packets exchanged", numExchanged); }
void I3SessionServer::initializeI3 | ( | ) | [virtual] |
Application I3 initialize - should be overwritten by application.
Reimplemented from I3BaseApp.
Definition at line 59 of file I3Session.cc.
{ numExchanged = 0; clientIdentifier.createFromHash("Client"); myIdentifier.createFromHash("Server"); insertTrigger(myIdentifier); }
Definition at line 50 of file I3Session.cc.
Referenced by deliver(), and initializeI3().
Definition at line 49 of file I3Session.cc.
Referenced by initializeI3().
Definition at line 47 of file I3Session.cc.
Referenced by deliver(), finish(), and initializeI3().