INET Framework for OMNeT++/OMNEST
|
Single-connection TCP application. More...
#include <TCPSessionApp.h>
Classes | |
struct | Command |
Public Member Functions | |
TCPSessionApp () | |
virtual | ~TCPSessionApp () |
Public Member Functions inherited from inet::TCPSocket::CallbackInterface | |
virtual | ~CallbackInterface () |
virtual void | socketDeleted (int connId, void *yourPtr) |
Protected Types | |
typedef std::vector< Command > | CommandVector |
Protected Member Functions | |
virtual bool | isNodeUp () |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | finish () override |
virtual void | refreshDisplay () const override |
virtual void | parseScript (const char *script) |
virtual cPacket * | createDataPacket (long sendBytes) |
virtual void | sendData () |
virtual void | handleTimer (cMessage *msg) override |
virtual void | socketEstablished (int connId, void *yourPtr) override |
virtual void | socketDataArrived (int connId, void *yourPtr, cPacket *msg, bool urgent) override |
virtual void | socketClosed (int connId, void *yourPtr) override |
virtual void | socketFailure (int connId, void *yourPtr, int code) override |
Protected Member Functions inherited from inet::TCPAppBase | |
virtual void | handleMessage (cMessage *msg) override |
virtual void | connect () |
virtual void | close () |
virtual void | sendPacket (cPacket *pkt) |
virtual void | socketPeerClosed (int connId, void *yourPtr) override |
virtual void | socketStatusArrived (int connId, void *yourPtr, TCPStatusInfo *status) override |
Protected Attributes | |
CommandVector | commands |
bool | activeOpen = false |
simtime_t | tOpen |
simtime_t | tSend |
simtime_t | tClose |
int | sendBytes = 0 |
int | commandIndex = -1 |
cMessage * | timeoutMsg = nullptr |
NodeStatus * | nodeStatus = nullptr |
Protected Attributes inherited from inet::TCPAppBase | |
TCPSocket | socket |
int | numSessions |
int | numBroken |
int | packetsSent |
int | packetsRcvd |
int | bytesSent |
int | bytesRcvd |
Additional Inherited Members | |
Static Protected Attributes inherited from inet::TCPAppBase | |
static simsignal_t | connectSignal = registerSignal("connect") |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
Single-connection TCP application.
|
protected |
|
virtual |
|
protectedvirtual |
Referenced by sendData().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
Reimplemented in inet::PacketDrillApp.
|
protectedvirtual |
Reimplemented in inet::PacketDrillApp.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
Reimplemented in inet::PacketDrillApp.
|
protectedvirtual |
Referenced by initialize().
|
inlineoverrideprotectedvirtual |
|
protectedvirtual |
Referenced by initialize().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
protectedvirtual |
Referenced by handleTimer().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
protected |
Referenced by handleTimer(), and initialize().
|
protected |
Referenced by initialize(), sendData(), and socketEstablished().
|
protected |
Referenced by initialize(), parseScript(), sendData(), and socketEstablished().
|
protected |
Referenced by initialize(), and isNodeUp().
|
protected |
Referenced by createDataPacket(), and initialize().
|
protected |
Referenced by initialize(), and sendData().
|
protected |
Referenced by handleOperationStage(), initialize(), sendData(), socketClosed(), socketEstablished(), socketFailure(), and ~TCPSessionApp().
|
protected |
Referenced by handleOperationStage(), and initialize().
|
protected |
Referenced by initialize(), parseScript(), sendData(), and socketEstablished().