INET Framework for OMNeT++/OMNEST
|
An example request-reply based client application. More...
#include <TCPBasicClientApp.h>
Public Member Functions | |
TCPBasicClientApp () | |
virtual | ~TCPBasicClientApp () |
Public Member Functions inherited from inet::TCPSocket::CallbackInterface | |
virtual | ~CallbackInterface () |
virtual void | socketDeleted (int connId, void *yourPtr) |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
virtual void | sendRequest () |
virtual void | rescheduleOrDeleteTimer (simtime_t d, short int msgKind) |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
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 |
virtual bool | isNodeUp () |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Protected Member Functions inherited from inet::TCPAppBase | |
virtual void | handleMessage (cMessage *msg) override |
virtual void | finish () override |
virtual void | refreshDisplay () const 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 | |
cMessage * | timeoutMsg = nullptr |
NodeStatus * | nodeStatus = nullptr |
bool | earlySend = false |
int | numRequestsToSend = 0 |
simtime_t | startTime |
simtime_t | stopTime |
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") |
An example request-reply based client application.
|
virtual |
|
overrideprotectedvirtual |
Perform one stage of a lifecycle operation.
Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.
Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"
Implements inet::ILifecycle.
|
overrideprotectedvirtual |
Implements inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
protectedvirtual |
Referenced by initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
protectedvirtual |
Referenced by socketClosed(), socketDataArrived(), and socketFailure().
|
protectedvirtual |
Referenced by handleTimer(), and socketEstablished().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
overrideprotectedvirtual |
Reimplemented from inet::TCPAppBase.
|
protected |
Referenced by handleTimer(), initialize(), and socketEstablished().
|
protected |
Referenced by initialize(), and isNodeUp().
|
protected |
Referenced by handleTimer(), initialize(), sendRequest(), socketDataArrived(), and socketEstablished().
|
protected |
Referenced by handleOperationStage(), and initialize().
|
protected |
Referenced by handleOperationStage(), initialize(), and rescheduleOrDeleteTimer().
|
protected |