INET Framework for OMNeT++/OMNEST
|
Base class for clients app for TCP-based request-reply protocols or apps. More...
#include <TCPAppBase.h>
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 void | connect () |
virtual void | close () |
virtual void | sendPacket (cPacket *pkt) |
virtual void | handleTimer (cMessage *msg)=0 |
virtual void | socketEstablished (int connId, void *yourPtr) override |
virtual void | socketDataArrived (int connId, void *yourPtr, cPacket *msg, bool urgent) override |
virtual void | socketPeerClosed (int connId, void *yourPtr) override |
virtual void | socketClosed (int connId, void *yourPtr) override |
virtual void | socketFailure (int connId, void *yourPtr, int code) override |
virtual void | socketStatusArrived (int connId, void *yourPtr, TCPStatusInfo *status) override |
Protected Attributes | |
TCPSocket | socket |
int | numSessions |
int | numBroken |
int | packetsSent |
int | packetsRcvd |
int | bytesSent |
int | bytesRcvd |
Static Protected Attributes | |
static simsignal_t | connectSignal = registerSignal("connect") |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
Additional Inherited Members | |
Public Member Functions inherited from inet::TCPSocket::CallbackInterface | |
virtual | ~CallbackInterface () |
virtual void | socketDeleted (int connId, void *yourPtr) |
Base class for clients app for TCP-based request-reply protocols or apps.
Handles a single session (and TCP connection) at a time.
It needs the following NED parameters: localAddress, localPort, connectAddress, connectPort.
|
protectedvirtual |
Referenced by inet::TelnetApp::handleOperationStage(), inet::TCPBasicClientApp::handleOperationStage(), inet::TCPSessionApp::handleOperationStage(), inet::TelnetApp::handleTimer(), inet::TCPSessionApp::handleTimer(), inet::TCPBasicClientApp::socketDataArrived(), and socketPeerClosed().
|
protectedvirtual |
Referenced by inet::TelnetApp::handleTimer(), inet::TCPBasicClientApp::handleTimer(), and inet::TCPSessionApp::handleTimer().
|
overrideprotectedvirtual |
Reimplemented in inet::PacketDrillApp, and inet::TCPSessionApp.
|
overrideprotectedvirtual |
Reimplemented in inet::PacketDrillApp.
|
protectedpure virtual |
Implemented in inet::PacketDrillApp, inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
Referenced by handleMessage().
|
overrideprotectedvirtual |
Reimplemented in inet::PacketDrillApp, inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
Referenced by inet::TelnetApp::initialize(), inet::TCPBasicClientApp::initialize(), and inet::TCPSessionApp::initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented in inet::PacketDrillApp, inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
|
overrideprotectedvirtual |
Reimplemented in inet::TCPSessionApp.
|
protectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::TCPSocket::CallbackInterface.
Reimplemented in inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
Referenced by inet::TelnetApp::socketClosed(), inet::TCPBasicClientApp::socketClosed(), and inet::TCPSessionApp::socketClosed().
|
overrideprotectedvirtual |
Implements inet::TCPSocket::CallbackInterface.
Reimplemented in inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
Referenced by inet::TelnetApp::socketDataArrived(), inet::TCPBasicClientApp::socketDataArrived(), and inet::TCPSessionApp::socketDataArrived().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPSocket::CallbackInterface.
Reimplemented in inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
Referenced by inet::TelnetApp::socketEstablished(), inet::TCPBasicClientApp::socketEstablished(), and inet::TCPSessionApp::socketEstablished().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPSocket::CallbackInterface.
Reimplemented in inet::TCPSessionApp, inet::TCPBasicClientApp, and inet::TelnetApp.
Referenced by inet::TelnetApp::socketFailure(), inet::TCPBasicClientApp::socketFailure(), and inet::TCPSessionApp::socketFailure().
|
overrideprotectedvirtual |
Reimplemented from inet::TCPSocket::CallbackInterface.
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::TCPSocket::CallbackInterface.
|
protected |
Referenced by finish(), inet::TCPSessionApp::finish(), initialize(), inet::TCPSessionApp::refreshDisplay(), and socketDataArrived().
|
protected |
|
staticprotected |
|
protected |
Referenced by initialize(), and socketFailure().
|
protected |
Referenced by connect(), finish(), and initialize().
|
protected |
Referenced by finish(), inet::TCPSessionApp::finish(), initialize(), and socketDataArrived().
|
protected |
Referenced by finish(), initialize(), and sendPacket().
|
staticprotected |
Referenced by socketDataArrived().
|
staticprotected |
Referenced by sendPacket().
|
protected |
Referenced by close(), connect(), inet::TCPSessionApp::createDataPacket(), handleMessage(), inet::TelnetApp::handleOperationStage(), inet::TCPBasicClientApp::handleOperationStage(), inet::TCPSessionApp::handleOperationStage(), initialize(), inet::TCPSessionApp::initialize(), refreshDisplay(), inet::TCPSessionApp::refreshDisplay(), sendPacket(), inet::TCPBasicClientApp::socketDataArrived(), and socketPeerClosed().