INET Framework for OMNeT++/OMNEST
|
Simple traffic generator for the Ethernet model. More...
#include <EtherAppCli.h>
Public Member Functions | |
EtherAppCli () | |
virtual | ~EtherAppCli () |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Types | |
enum | Kinds { START = 100, NEXT } |
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 bool | isNodeUp () |
virtual bool | isGenerator () |
virtual void | scheduleNextPacket (bool start) |
virtual void | cancelNextPacket () |
virtual MACAddress | resolveDestMACAddress () |
virtual void | sendPacket () |
virtual void | receivePacket (cPacket *msg) |
virtual void | registerDSAP (int dsap) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Protected Attributes | |
long | seqNum = 0 |
cPar * | reqLength = nullptr |
cPar * | respLength = nullptr |
cPar * | sendInterval = nullptr |
int | localSAP = -1 |
int | remoteSAP = -1 |
MACAddress | destMACAddress |
NodeStatus * | nodeStatus = nullptr |
cMessage * | timerMsg = nullptr |
simtime_t | startTime |
simtime_t | stopTime |
long | packetsSent = 0 |
long | packetsReceived = 0 |
Static Protected Attributes | |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
Simple traffic generator for the Ethernet model.
|
protected |
|
virtual |
|
protectedvirtual |
Referenced by handleOperationStage().
|
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 handleOperationStage(), and initialize().
|
protectedvirtual |
Referenced by handleMessage(), and initialize().
|
inlineoverrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage(), handleOperationStage(), and initialize().
|
protectedvirtual |
Referenced by handleMessage().
|
protected |
Referenced by handleMessage(), resolveDestMACAddress(), and sendPacket().
|
protected |
Referenced by handleMessage(), initialize(), and sendPacket().
|
protected |
Referenced by initialize(), and isNodeUp().
|
protected |
Referenced by initialize(), and receivePacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
staticprotected |
Referenced by receivePacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
staticprotected |
Referenced by sendPacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
protected |
Referenced by cancelNextPacket(), finish(), initialize(), scheduleNextPacket(), and ~EtherAppCli().