|
INET Framework for OMNeT++/OMNEST
|
IP traffic generator application. More...
#include <IPvXTrafGen.h>
Public Member Functions | |
| IPvXTrafGen () | |
| virtual | ~IPvXTrafGen () |
Public Member Functions inherited from inet::ILifecycle | |
| virtual | ~ILifecycle () |
Protected Types | |
| enum | Kinds { START = 100, NEXT } |
Protected Member Functions | |
| virtual void | scheduleNextPacket (simtime_t previous) |
| virtual void | cancelNextPacket () |
| virtual bool | isNodeUp () |
| virtual bool | isEnabled () |
| virtual L3Address | chooseDestAddr () |
| virtual void | sendPacket () |
| virtual int | numInitStages () const override |
| virtual void | initialize (int stage) override |
| virtual void | handleMessage (cMessage *msg) override |
| virtual void | refreshDisplay () const override |
| virtual void | startApp () |
| virtual void | printPacket (cPacket *msg) |
| virtual void | processPacket (cPacket *msg) |
| virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
| Perform one stage of a lifecycle operation. More... | |
Protected Attributes | |
| simtime_t | startTime |
| simtime_t | stopTime |
| cPar * | sendIntervalPar = nullptr |
| cPar * | packetLengthPar = nullptr |
| int | protocol = -1 |
| std::vector< L3Address > | destAddresses |
| int | numPackets = 0 |
| NodeStatus * | nodeStatus = nullptr |
| cMessage * | timer = nullptr |
| bool | isOperational = false |
| int | numSent = 0 |
| int | numReceived = 0 |
Static Protected Attributes | |
| static simsignal_t | sentPkSignal = registerSignal("sentPk") |
| static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
IP traffic generator application.
See NED for more info.
|
protected |
|
virtual |
|
protectedvirtual |
Referenced by handleOperationStage().
|
protectedvirtual |
Referenced by sendPacket().
|
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 handleMessage(), and startApp().
|
protectedvirtual |
Referenced by handleMessage(), and initialize().
|
inlineoverrideprotectedvirtual |
|
protectedvirtual |
Referenced by processPacket(), and sendPacket().
|
protectedvirtual |
Referenced by handleMessage().
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleMessage(), and startApp().
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleOperationStage(), and initialize().
|
protected |
Referenced by chooseDestAddr(), and handleMessage().
|
protected |
Referenced by initialize().
|
protected |
Referenced by initialize(), and isNodeUp().
|
protected |
Referenced by initialize(), and isEnabled().
|
protected |
Referenced by initialize(), processPacket(), and refreshDisplay().
|
protected |
Referenced by initialize(), isEnabled(), refreshDisplay(), and sendPacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
protected |
Referenced by initialize(), printPacket(), and sendPacket().
|
staticprotected |
Referenced by processPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
staticprotected |
Referenced by sendPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
protected |
Referenced by cancelNextPacket(), handleMessage(), initialize(), scheduleNextPacket(), and ~IPvXTrafGen().