INET Framework for OMNeT++/OMNEST
|
Implements the SCTPClient simple module. More...
#include <SCTPClient.h>
Classes | |
struct | PathStatus |
Public Member Functions | |
SCTPClient () | |
virtual | ~SCTPClient () |
Public Member Functions inherited from inet::SCTPSocket::CallbackInterface | |
virtual | ~CallbackInterface () |
virtual void | socketDeleted (int assocId, void *yourPtr) |
virtual void | sendqueueFullArrived (int connId) |
virtual void | addressAddedArrived (int assocId, L3Address localAddr, L3Address remoteAddr) |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Types | |
typedef std::map< L3Address, PathStatus > | SCTPPathStatus |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *msg) override |
virtual void | finish () override |
virtual void | refreshDisplay () const override |
void | connect () |
void | close () |
void | handleTimer (cMessage *msg) |
void | socketEstablished (int connId, void *yourPtr, unsigned long int buffer) override |
void | socketDataArrived (int connId, void *yourPtr, cPacket *msg, bool urgent) override |
void | socketDataNotificationArrived (int connId, void *yourPtr, cPacket *msg) override |
void | socketPeerClosed (int connId, void *yourPtr) override |
void | socketClosed (int connId, void *yourPtr) override |
void | socketFailure (int connId, void *yourPtr, int code) override |
void | socketStatusArrived (int connId, void *yourPtr, SCTPStatusInfo *status) override |
void | setPrimaryPath (const char *addr) |
void | sendRequestArrived () override |
void | sendQueueRequest () |
void | shutdownReceivedArrived (int connId) override |
void | sendqueueAbatedArrived (int connId, unsigned long int buffer) override |
void | msgAbandonedArrived (int assocId) override |
void | sendStreamResetNotification () |
void | sendRequest (bool last=true) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Protected Attributes | |
std::map< unsigned int, unsigned int > | streamRequestLengthMap |
std::map< unsigned int, unsigned int > | streamRequestRatioMap |
std::map< unsigned int, unsigned int > | streamRequestRatioSendMap |
int | queueSize |
unsigned int | outStreams |
unsigned int | inStreams |
bool | echo |
bool | ordered |
bool | finishEndsSimulation |
SCTPSocket | socket |
SCTPPathStatus | sctpPathStatus |
cMessage * | timeMsg |
cMessage * | stopTimer |
cMessage * | primaryChangeTimer |
int64 | bufferSize |
bool | timer |
bool | sendAllowed |
const char * | stateNameStr |
unsigned long int | packetsSent |
unsigned long int | packetsRcvd |
unsigned long int | bytesSent |
unsigned long int | echoedBytesSent |
unsigned long int | bytesRcvd |
unsigned long int | numRequestsToSend |
unsigned long int | numPacketsToReceive |
int | numSessions |
int | numBroken |
int | chunksAbandoned |
Static Protected Attributes | |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
static simsignal_t | echoedPkSignal = registerSignal("echoedPk") |
Implements the SCTPClient simple module.
See the NED file for more info.
|
protected |
inet::SCTPClient::SCTPClient | ( | ) |
|
virtual |
|
protected |
Referenced by handleTimer(), socketDataArrived(), and socketPeerClosed().
|
protected |
Referenced by handleTimer().
|
overrideprotectedvirtual |
|
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.
|
protected |
Referenced by handleMessage().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
protected |
Referenced by socketEstablished().
|
protected |
Referenced by handleTimer(), sendqueueAbatedArrived(), sendRequestArrived(), and socketEstablished().
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
protected |
Referenced by handleTimer().
|
protected |
Referenced by handleTimer().
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Implements inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Implements inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
overrideprotectedvirtual |
Reimplemented from inet::SCTPSocket::CallbackInterface.
|
protected |
Referenced by SCTPClient(), sendqueueAbatedArrived(), sendRequest(), and socketEstablished().
|
protected |
Referenced by finish(), initialize(), SCTPClient(), and socketDataArrived().
|
protected |
Referenced by finish(), initialize(), SCTPClient(), and sendRequest().
|
protected |
Referenced by msgAbandonedArrived(), and SCTPClient().
|
protected |
Referenced by initialize(), SCTPClient(), and socketDataArrived().
|
protected |
Referenced by SCTPClient(), and socketDataArrived().
|
staticprotected |
Referenced by socketDataArrived().
|
protected |
Referenced by handleTimer(), initialize(), SCTPClient(), sendqueueAbatedArrived(), sendRequestArrived(), and socketEstablished().
|
protected |
Referenced by connect(), and SCTPClient().
|
protected |
Referenced by initialize(), SCTPClient(), and socketFailure().
|
protected |
Referenced by SCTPClient(), socketDataArrived(), and socketEstablished().
|
protected |
|
protected |
Referenced by connect(), finish(), initialize(), and SCTPClient().
|
protected |
Referenced by initialize(), SCTPClient(), and sendRequest().
|
protected |
Referenced by connect(), SCTPClient(), and sendRequest().
|
protected |
Referenced by finish(), initialize(), SCTPClient(), and socketDataArrived().
|
protected |
Referenced by finish(), initialize(), SCTPClient(), and socketDataArrived().
|
protected |
Referenced by initialize(), SCTPClient(), socketClosed(), and ~SCTPClient().
|
protected |
Referenced by initialize(), SCTPClient(), sendQueueRequest(), sendRequestArrived(), and socketEstablished().
|
staticprotected |
Referenced by socketDataArrived().
|
protected |
Referenced by socketStatusArrived().
|
protected |
Referenced by handleTimer(), SCTPClient(), sendqueueAbatedArrived(), sendRequestArrived(), and socketEstablished().
|
staticprotected |
Referenced by sendRequest().
|
protected |
Referenced by close(), connect(), handleMessage(), handleTimer(), initialize(), sendqueueAbatedArrived(), sendQueueRequest(), sendRequest(), sendRequestArrived(), sendStreamResetNotification(), setPrimaryPath(), shutdownReceivedArrived(), socketDataArrived(), socketDataNotificationArrived(), socketEstablished(), and socketPeerClosed().
|
protected |
Referenced by close(), connect(), initialize(), refreshDisplay(), SCTPClient(), socketClosed(), socketEstablished(), and socketFailure().
|
protected |
Referenced by initialize(), SCTPClient(), and ~SCTPClient().
|
protected |
Referenced by connect(), and sendRequest().
|
protected |
Referenced by connect(), and sendRequest().
|
protected |
Referenced by connect(), and sendRequest().
|
protected |
Referenced by handleTimer(), initialize(), SCTPClient(), sendqueueAbatedArrived(), sendRequestArrived(), socketEstablished(), socketFailure(), and ~SCTPClient().
|
protected |
Referenced by handleTimer(), initialize(), SCTPClient(), sendqueueAbatedArrived(), sendRequestArrived(), and socketEstablished().