#include <Ieee8021qSocket.h>
|
| virtual void | sendOut (cMessage *msg) override |
| |
◆ bind()
| void inet::Ieee8021qSocket::bind |
( |
const Protocol * |
protocol, |
|
|
int |
vlanId, |
|
|
bool |
steal |
|
) |
| |
Binds the socket to the MAC address.
29 Ieee8021qBindCommand *
ctrl =
new Ieee8021qBindCommand();
31 ctrl->setVlanId(vlanId);
32 ctrl->setSteal(steal);
33 request->setControlInfo(
ctrl);
◆ processMessage()
| void inet::Ieee8021qSocket::processMessage |
( |
cMessage * |
msg | ) |
|
|
overridevirtual |
Returns true if the message belongs to this socket instance.
Implements inet::ISocket.
41 switch (msg->getKind()) {
55 throw cRuntimeError(
"Ieee8021qSocket: invalid msg kind %d, one of the ETHERNNET_I_xxx constants expected", msg->getKind());
◆ sendOut()
| void inet::Ieee8021qSocket::sendOut |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
◆ setCallback()
| void inet::Ieee8021qSocket::setCallback |
( |
ICallback * |
callback | ) |
|
|
inline |
Sets a callback object, to be used with processMessage().
This callback object may be your simple module itself (if it multiply inherits from ICallback too, that is you declared it as
class MyAppModule : public cSimpleModule, public Ieee8021qSocket::ICallback
and redefined the necessary virtual functions; or you may use dedicated class (and objects) for this purpose.
Ieee8021qSocket doesn't delete the callback object in the destructor or on any other occasion.
◆ setNetworkInterface()
| void inet::Ieee8021qSocket::setNetworkInterface |
( |
NetworkInterface * |
networkInterface | ) |
|
|
inline |
◆ setProtocol()
| void inet::Ieee8021qSocket::setProtocol |
( |
const Protocol * |
protocol | ) |
|
|
inline |
◆ callback
| ICallback* inet::Ieee8021qSocket::callback = nullptr |
|
protected |
◆ networkInterface
◆ protocol
| const Protocol* inet::Ieee8021qSocket::protocol = nullptr |
|
protected |
The documentation for this class was generated from the following files: