#include <LayeredProtocolBase.h>
void inet::LayeredProtocolBase::handleLowerCommand |
( |
cMessage * |
message | ) |
|
|
protectedvirtual |
Referenced by handleMessageWhenUp().
65 throw cRuntimeError(
"Lower command '%s' is not handled.", message->getName());
virtual void inet::LayeredProtocolBase::handleLowerPacket |
( |
cPacket * |
packet | ) |
|
|
protectedpure virtual |
void inet::LayeredProtocolBase::handleMessageWhenUp |
( |
cMessage * |
message | ) |
|
|
overrideprotectedvirtual |
Implements inet::OperationalBase.
31 if (message->isSelfMessage())
34 if (!message->isPacket())
42 if (!message->isPacket())
50 throw cRuntimeError(
"Message '%s' received on unexpected gate '%s'", message->getName(), message->getArrivalGate()->getFullName());
virtual bool isLowerMessage(cMessage *message)=0
virtual void handleUpperCommand(cMessage *message)
Definition: LayeredProtocolBase.cc:58
virtual void handleUpperPacket(cPacket *packet)=0
virtual bool isUpperMessage(cMessage *message)=0
static simsignal_t packetReceivedFromUpperSignal
Definition: LayeredProtocolBase.h:29
virtual void handleSelfMessage(cMessage *message)
Definition: LayeredProtocolBase.cc:53
#define PK(msg)
Definition: INETDefs.h:92
virtual void handleLowerCommand(cMessage *message)
Definition: LayeredProtocolBase.cc:63
static simsignal_t packetReceivedFromLowerSignal
Definition: LayeredProtocolBase.h:33
virtual void handleLowerPacket(cPacket *packet)=0
void inet::LayeredProtocolBase::handleSelfMessage |
( |
cMessage * |
message | ) |
|
|
protectedvirtual |
Reimplemented in inet::WiseRoute, inet::CsmaCaMac, inet::CSMA, inet::LMacLayer, inet::ProbabilisticBroadcast, inet::IdealMac, inet::BMacLayer, inet::ieee80211::Ieee80211Mac, and inet::AdaptiveProbabilisticBroadcast.
Referenced by handleMessageWhenUp(), and inet::IdealMac::handleSelfMessage().
55 throw cRuntimeError(
"Self message '%s' is not handled.", message->getName());
void inet::LayeredProtocolBase::handleUpperCommand |
( |
cMessage * |
message | ) |
|
|
protectedvirtual |
virtual void inet::LayeredProtocolBase::handleUpperPacket |
( |
cPacket * |
packet | ) |
|
|
protectedpure virtual |
virtual bool inet::LayeredProtocolBase::isLowerMessage |
( |
cMessage * |
message | ) |
|
|
protectedpure virtual |
virtual bool inet::LayeredProtocolBase::isUpperMessage |
( |
cMessage * |
message | ) |
|
|
protectedpure virtual |
simsignal_t inet::LayeredProtocolBase::packetFromLowerDroppedSignal = registerSignal("packetFromLowerDropped") |
|
static |
simsignal_t inet::LayeredProtocolBase::packetFromUpperDroppedSignal = registerSignal("packetFromUpperDropped") |
|
static |
Referenced by inet::BMacLayer::addToQueue(), inet::IPv4::arpResolutionTimedOut(), inet::IPv4::datagramLocalOut(), inet::IPv4::forwardMulticastPacket(), inet::IPv4::fragmentAndSend(), inet::IPv4::handlePacketFromHL(), inet::CsmaCaMac::handleUpperPacket(), inet::IPv4::preroutingFinish(), inet::visualizer::PacketDropVisualizerBase::receiveSignal(), inet::IPv4::routeLocalBroadcastPacket(), inet::IPv4::routeUnicastPacket(), inet::visualizer::PacketDropVisualizerBase::subscribe(), inet::visualizer::PacketDropVisualizerBase::unsubscribe(), inet::CSMA::updateStatusCCA(), and inet::CSMA::updateStatusIdle().
simsignal_t inet::LayeredProtocolBase::packetReceivedFromLowerSignal = registerSignal("packetReceivedFromLower") |
|
static |
simsignal_t inet::LayeredProtocolBase::packetReceivedFromUpperSignal = registerSignal("packetReceivedFromUpper") |
|
static |
simsignal_t inet::LayeredProtocolBase::packetSentToLowerSignal = registerSignal("packetSentToLower") |
|
static |
simsignal_t inet::LayeredProtocolBase::packetSentToUpperSignal = registerSignal("packetSentToUpper") |
|
static |
Referenced by inet::physicallayer::Radio::endReception(), inet::IPv4::handleIncomingICMP(), inet::IPv4::reassembleAndDeliverFinish(), inet::visualizer::LinkVisualizerBase::receiveSignal(), inet::visualizer::PathVisualizerBase::receiveSignal(), inet::IPv4::sendOnTransportOutGateByProtocolId(), inet::NetworkProtocolBase::sendUp(), inet::MACProtocolBase::sendUp(), inet::UDP::sendUp(), inet::visualizer::LinkVisualizerBase::subscribe(), inet::visualizer::PathVisualizerBase::subscribe(), inet::visualizer::LinkVisualizerBase::unsubscribe(), and inet::visualizer::PathVisualizerBase::unsubscribe().
The documentation for this class was generated from the following files: