|
INET Framework for OMNeT++/OMNEST
|
An example Telnet client application. More...
#include <TelnetApp.h>
Public Member Functions | |
| TelnetApp () | |
| virtual | ~TelnetApp () |
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 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 void | checkedScheduleAt (simtime_t t, cMessage *msg) |
| virtual void | sendGenericAppMsg (int numBytes, int expectedReplyBytes) |
| 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 |
| int | numLinesToType = 0 |
| int | numCharsToType = 0 |
| 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 Telnet client application.
The server app should be TCPGenericSrvApp.
|
virtual |
|
protectedvirtual |
Referenced by handleTimer(), socketClosed(), socketDataArrived(), socketEstablished(), and socketFailure().
|
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.
|
inlineoverrideprotectedvirtual |
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(), initialize(), and socketEstablished().
|
protected |
Referenced by initialize(), socketDataArrived(), and socketEstablished().
|
protected |
Referenced by checkedScheduleAt(), handleOperationStage(), and initialize().
|
protected |
Referenced by handleOperationStage(), handleTimer(), initialize(), socketClosed(), socketDataArrived(), socketEstablished(), socketFailure(), and ~TelnetApp().