|
INET Framework for OMNeT++/OMNEST
|
UDP application.
More...
#include <UdpEchoApp.h>
UDP application.
See NED for more info.
◆ finish()
| void inet::UdpEchoApp::finish |
( |
| ) |
|
|
overrideprotectedvirtual |
74 ApplicationBase::finish();
◆ handleCrashOperation()
◆ handleMessageWhenUp()
| void inet::UdpEchoApp::handleMessageWhenUp |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
◆ handleStartOperation()
◆ handleStopOperation()
◆ initialize()
| void inet::UdpEchoApp::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ numInitStages()
| virtual int inet::UdpEchoApp::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ refreshDisplay()
| void inet::UdpEchoApp::refreshDisplay |
( |
| ) |
const |
|
overrideprotectedvirtual |
68 sprintf(buf,
"echoed: %d pks",
numEchoed);
69 getDisplayString().setTagArg(
"t", 0, buf);
◆ socketClosed()
| void inet::UdpEchoApp::socketClosed |
( |
UdpSocket * |
socket | ) |
|
|
overrideprotectedvirtual |
◆ socketDataArrived()
| void inet::UdpEchoApp::socketDataArrived |
( |
UdpSocket * |
socket, |
|
|
Packet * |
packet |
|
) |
| |
|
overrideprotectedvirtual |
Notifies about data arrival, packet ownership is transferred to the callee.
Implements inet::UdpSocket::ICallback.
39 L3Address remoteAddress = pk->getTag<
L3AddressInd>()->getSrcAddress();
40 int srcPort = pk->getTag<
L4PortInd>()->getSrcPort();
◆ socketErrorArrived()
Notifies about error indication arrival, indication ownership is transferred to the callee.
Implements inet::UdpSocket::ICallback.
53 EV_WARN <<
"Ignoring UDP error report " << indication->getName() << endl;
◆ numEchoed
| int inet::UdpEchoApp::numEchoed |
|
protected |
◆ socket
The documentation for this class was generated from the following files:
void setOutputGate(cGate *toUdp)
Sets the gate on which to send to UDP.
Definition: UdpSocket.h:117
State operationalState
Definition: OperationalMixin.h:23
void bind(int localPort)
Bind the socket to a local port number.
Definition: UdpSocket.cc:34
void sendTo(Packet *msg, L3Address destAddr, int destPort)
Sends a data packet to the given address and port.
Definition: UdpSocket.cc:69
UdpSocket socket
Definition: UdpEchoApp.h:22
cModule * getContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:40
virtual void initialize(int stage) override
Definition: OperationalMixinImpl.h:26
virtual void destroy() override
Notify the protocol that the owner of ISocket has destroyed the socket.
Definition: UdpSocket.cc:98
removed DscpReq Ipv4ControlInfo Ipv6ControlInfo up L3AddressInd L3AddressInd
Definition: IUdp-gates.txt:20
simsignal_t packetSentSignal
Definition: Simsignals.cc:96
void setCallback(ICallback *cb)
Sets a callback object, to be used with processMessage().
Definition: UdpSocket.cc:338
int numEchoed
Definition: UdpEchoApp.h:23
void joinLocalMulticastGroups(MulticastGroupList mgl)
Joins the socket to each multicast group that are registered with any of the interfaces.
Definition: UdpSocket.cc:265
virtual void processMessage(cMessage *msg) override
Examines the message, takes ownership, and updates socket state.
Definition: UdpSocket.cc:343
std::vector< MulticastGroup > MulticastGroupList
Definition: IInterfaceTable.h:26
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
virtual void close() override
Unbinds the socket.
Definition: UdpSocket.cc:87
#define NUM_INIT_STAGES
Definition: InitStageRegistry.h:73
removed DscpReq Ipv4ControlInfo Ipv6ControlInfo up L3AddressInd L4PortInd
Definition: IUdp-gates.txt:20
virtual void delayActiveOperationFinish(simtime_t timeout)
Definition: OperationalMixinImpl.h:161
virtual void startActiveOperationExtraTimeOrFinish(simtime_t extraTime)
Definition: OperationalMixinImpl.h:179
virtual void refreshDisplay() const override
Definition: OperationalMixinImpl.h:200