#include <MultiNetworkLayerLowerMultiplexer.h>
inet::MultiNetworkLayerLowerMultiplexer::MultiNetworkLayerLowerMultiplexer |
( |
| ) |
|
|
inline |
virtual inet::MultiNetworkLayerLowerMultiplexer::~MultiNetworkLayerLowerMultiplexer |
( |
| ) |
|
|
inlinevirtual |
int inet::MultiNetworkLayerLowerMultiplexer::getProtocolCount |
( |
| ) |
|
|
protected |
int inet::MultiNetworkLayerLowerMultiplexer::getProtocolIndex |
( |
cMessage * |
message | ) |
|
|
protected |
Referenced by handleMessage().
61 else if (dynamic_cast<IPv4Datagram *>(message) || dynamic_cast<ARPPacket *>(message))
63 #endif // ifdef WITH_IPv4 65 else if (dynamic_cast<IPv6Datagram *>(message))
67 #endif // ifdef WITH_IPv6 69 else if (dynamic_cast<GenericDatagram *>(message))
71 #endif // ifdef WITH_GENERIC 73 throw cRuntimeError(
"Unknown message");
void inet::MultiNetworkLayerLowerMultiplexer::handleMessage |
( |
cMessage * |
message | ) |
|
|
overrideprotectedvirtual |
40 cGate *arrivalGate = message->getArrivalGate();
41 const char *arrivalGateName = arrivalGate->getBaseName();
42 if (!strcmp(arrivalGateName,
"ifUpperIn"))
44 else if (!strcmp(arrivalGateName,
"ifLowerIn"))
47 throw cRuntimeError(
"Unknown arrival gate");
int getProtocolIndex(cMessage *message)
Definition: MultiNetworkLayerLowerMultiplexer.cc:55
int getProtocolCount()
Definition: MultiNetworkLayerLowerMultiplexer.cc:50
The documentation for this class was generated from the following files: