INET Framework for OMNeT++/OMNEST
|
Hosts a server application, to be subclassed from TCPServerProcess (which is a sSimpleModule). More...
#include <TCPSrvHostApp.h>
Public Member Functions | |
virtual void | removeThread (TCPServerThreadBase *thread) |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
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 | |
TCPSocket | serverSocket |
TCPSocketMap | socketMap |
Hosts a server application, to be subclassed from TCPServerProcess (which is a sSimpleModule).
Creates one instance (using dynamic module creation) for each incoming connection. More info in the corresponding NED file.
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
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 |
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
virtual |
Referenced by inet::TCPServerThreadBase::closed(), and inet::TCPServerThreadBase::failure().
|
protected |
Referenced by initialize().
|
protected |
Referenced by handleMessage(), refreshDisplay(), and removeThread().