|
INET Framework for OMNeT++/OMNEST
|
#include <Ieee8022LlcSocketIo.h>
◆ finish()
| void inet::Ieee8022LlcSocketIo::finish |
( |
| ) |
|
|
overrideprotectedvirtual |
84 recordScalar(
"packets sent",
numSent);
86 ApplicationBase::finish();
◆ handleCrashOperation()
◆ handleMessageWhenUp()
| void inet::Ieee8022LlcSocketIo::handleMessageWhenUp |
( |
cMessage * |
message | ) |
|
|
overrideprotectedvirtual |
◆ handleStartOperation()
◆ handleStopOperation()
◆ initialize()
| void inet::Ieee8022LlcSocketIo::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::OperationalMixin< cSimpleModule >.
34 const char *localAddressString = par(
"localAddress");
35 if (*localAddressString !=
'\0') {
37 L3AddressResolver addressResolver;
44 const char *remoteAddressString = par(
"remoteAddress");
45 if (*remoteAddressString !=
'\0') {
47 L3AddressResolver addressResolver;
54 const char *
interface = par("interface");
55 if (interface[0] !=
'\0') {
56 auto interfaceTable = getModuleFromPar<IInterfaceTable>(par(
"interfaceTableModule"),
this);
59 throw cRuntimeError(
"Cannot find network interface");
◆ numInitStages()
| virtual int inet::Ieee8022LlcSocketIo::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ refreshDisplay()
| void inet::Ieee8022LlcSocketIo::refreshDisplay |
( |
| ) |
const |
|
overrideprotectedvirtual |
94 getDisplayString().setTagArg(
"t", 0, buf);
◆ setSocketOptions()
| void inet::Ieee8022LlcSocketIo::setSocketOptions |
( |
| ) |
|
|
protectedvirtual |
◆ socketClosed()
◆ socketDataArrived()
◆ localAddress
| MacAddress inet::Ieee8022LlcSocketIo::localAddress |
|
protected |
◆ localSap
| int inet::Ieee8022LlcSocketIo::localSap = -1 |
|
protected |
◆ networkInterface
◆ numReceived
| int inet::Ieee8022LlcSocketIo::numReceived = 0 |
|
protected |
◆ numSent
| int inet::Ieee8022LlcSocketIo::numSent = 0 |
|
protected |
◆ remoteAddress
| MacAddress inet::Ieee8022LlcSocketIo::remoteAddress |
|
protected |
◆ remoteSap
| int inet::Ieee8022LlcSocketIo::remoteSap = -1 |
|
protected |
◆ socket
The documentation for this class was generated from the following files:
void setCallback(ICallback *callback)
Sets a callback object, to be used with processMessage().
Definition: Ieee8022LlcSocket.h:49
State operationalState
Definition: OperationalMixin.h:23
void setOutputGate(cGate *gate)
Sets the gate on which to send messages.
Definition: SocketBase.h:36
MacAddress remoteAddress
Definition: Ieee8022LlcSocketIo.h:22
NetworkInterface * networkInterface
Definition: Ieee8022LlcSocketIo.h:24
MacAddress localAddress
Definition: Ieee8022LlcSocketIo.h:23
virtual void initialize(int stage) override
Definition: OperationalMixinImpl.h:26
int numSent
Definition: Ieee8022LlcSocketIo.h:28
simsignal_t packetSentSignal
Definition: Simsignals.cc:96
int remoteSap
Definition: Ieee8022LlcSocketIo.h:21
@ ADDR_MAC
Definition: L3AddressResolver.h:72
removed DscpReq Ipv4ControlInfo Ipv6ControlInfo up L3AddressInd DispatchProtocolReq L4PortInd Ipv4ControlInfo Ipv6ControlInfo down PacketProtocolTag
Definition: IUdp-gates.txt:25
INET_API InitStage INITSTAGE_NETWORK_INTERFACE_CONFIGURATION
Initialization of network interfaces includes:
int getInterfaceId() const
Definition: NetworkInterface.h:232
simsignal_t packetReceivedSignal
Definition: Simsignals.cc:97
int numReceived
Definition: Ieee8022LlcSocketIo.h:29
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
#define NUM_INIT_STAGES
Definition: InitStageRegistry.h:73
virtual void close() override
Unbinds the socket.
Definition: SocketBase.cc:43
virtual void send(Packet *packet) override
Sends a data packet to the address and port specified previously in a connect() call.
Definition: SocketBase.cc:36
virtual void open(int interfaceId, int localSap, int remoteSap)
Definition: Ieee8022LlcSocket.cc:40
virtual void delayActiveOperationFinish(simtime_t timeout)
Definition: OperationalMixinImpl.h:161
Ieee8022LlcSocket socket
Definition: Ieee8022LlcSocketIo.h:26
virtual void startActiveOperationExtraTimeOrFinish(simtime_t extraTime)
Definition: OperationalMixinImpl.h:179
@ MAC
Definition: L3Address.h:38
int localSap
Definition: Ieee8022LlcSocketIo.h:20
virtual void refreshDisplay() const override
Definition: OperationalMixinImpl.h:200
virtual void processMessage(cMessage *msg) override
Examines the message, takes ownership, and updates socket state.
Definition: Ieee8022LlcSocket.cc:57
virtual void setSocketOptions()
Definition: Ieee8022LlcSocketIo.cc:97
virtual bool belongsToSocket(cMessage *msg) const override
Returns true if the message belongs to this socket instance.
Definition: SocketBase.cc:61
virtual void destroy() override
Notify the protocol that the owner of ISocket has destroyed the socket.
Definition: SocketBase.cc:52
static const Protocol unknown
Definition: Protocol.h:133