INET Framework for OMNeT++/OMNEST
|
#include <UDPBasicApp.h>
Public Member Functions | |
UDPBasicApp () | |
~UDPBasicApp () | |
Public Member Functions inherited from inet::ApplicationBase | |
ApplicationBase () | |
Public Member Functions inherited from inet::OperationalBase | |
OperationalBase () | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Types | |
enum | SelfMsgKinds { START = 1, SEND, STOP } |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | handleMessageWhenUp (cMessage *msg) override |
virtual void | finish () override |
virtual void | refreshDisplay () const override |
virtual L3Address | chooseDestAddr () |
virtual void | sendPacket () |
virtual void | processPacket (cPacket *msg) |
virtual void | setSocketOptions () |
virtual void | processStart () |
virtual void | processSend () |
virtual void | processStop () |
virtual bool | handleNodeStart (IDoneCallback *doneCallback) override |
virtual bool | handleNodeShutdown (IDoneCallback *doneCallback) override |
virtual void | handleNodeCrash () override |
Protected Member Functions inherited from inet::ApplicationBase | |
virtual bool | isInitializeStage (int stage) override |
virtual bool | isNodeStartStage (int stage) override |
virtual bool | isNodeShutdownStage (int stage) override |
Protected Member Functions inherited from inet::OperationalBase | |
virtual void | handleMessage (cMessage *msg) override |
virtual void | handleMessageWhenDown (cMessage *msg) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual void | setOperational (bool isOperational) |
Protected Attributes | |
std::vector< L3Address > | destAddresses |
int | localPort = -1 |
int | destPort = -1 |
simtime_t | startTime |
simtime_t | stopTime |
const char * | packetName = nullptr |
UDPSocket | socket |
cMessage * | selfMsg = nullptr |
int | numSent = 0 |
int | numReceived = 0 |
Protected Attributes inherited from inet::OperationalBase | |
bool | isOperational |
simtime_t | lastChange |
Static Protected Attributes | |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
UDP application.
See NED for more info.
|
protected |
inet::UDPBasicApp::~UDPBasicApp | ( | ) |
|
protectedvirtual |
Referenced by sendPacket().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements inet::OperationalBase.
|
overrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
overrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::OperationalBase.
|
protectedvirtual |
Referenced by handleMessageWhenUp().
|
protectedvirtual |
Referenced by handleMessageWhenUp(), and processStart().
|
protectedvirtual |
Referenced by handleMessageWhenUp().
|
protectedvirtual |
Referenced by handleMessageWhenUp().
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by processSend().
|
protectedvirtual |
Referenced by processStart().
|
protected |
Referenced by chooseDestAddr(), and processStart().
|
protected |
Referenced by initialize(), and sendPacket().
|
protected |
Referenced by initialize(), and processStart().
|
protected |
Referenced by finish(), initialize(), processPacket(), and refreshDisplay().
|
protected |
Referenced by finish(), initialize(), refreshDisplay(), and sendPacket().
|
protected |
Referenced by initialize(), and sendPacket().
|
staticprotected |
Referenced by processPacket().
|
protected |
Referenced by handleMessageWhenUp(), handleNodeCrash(), handleNodeShutdown(), handleNodeStart(), initialize(), processSend(), processStart(), and ~UDPBasicApp().
|
staticprotected |
Referenced by sendPacket().
|
protected |
Referenced by processStart(), processStop(), sendPacket(), and setSocketOptions().
|
protected |
Referenced by handleNodeStart(), and initialize().
|
protected |
Referenced by handleNodeStart(), initialize(), processSend(), and processStart().