INET Framework for OMNeT++/OMNEST
|
Accepts any number of incoming connections, and sends back whatever arrives on them. More...
#include <TCPEchoApp.h>
Public Member Functions | |
TCPEchoApp () | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
virtual bool | isNodeUp () |
virtual void | sendDown (cMessage *msg) |
virtual void | startListening () |
virtual void | stopListening () |
virtual void | initialize (int stage) override |
virtual int | numInitStages () const override |
virtual void | handleMessage (cMessage *msg) override |
virtual void | finish () override |
virtual void | refreshDisplay () const override |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Protected Attributes | |
simtime_t | delay |
double | echoFactor = NaN |
TCPSocket | socket |
NodeStatus * | nodeStatus = nullptr |
long | bytesRcvd = 0 |
long | bytesSent = 0 |
Static Protected Attributes | |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
Accepts any number of incoming connections, and sends back whatever arrives on them.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
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 |
|
protectedvirtual |
Referenced by handleMessage(), and initialize().
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleOperationStage(), and initialize().
|
protectedvirtual |
Referenced by handleOperationStage().
|
protected |
Referenced by finish(), handleMessage(), initialize(), and refreshDisplay().
|
protected |
Referenced by finish(), initialize(), refreshDisplay(), and sendDown().
|
protected |
Referenced by handleMessage(), and initialize().
|
protected |
Referenced by handleMessage(), and initialize().
|
protected |
Referenced by initialize(), and isNodeUp().
|
staticprotected |
Referenced by handleMessage().
|
staticprotected |
Referenced by sendDown().
|
protected |
Referenced by initialize(), startListening(), and stopListening().