INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:36
by nedtool.
More...
#include <SCTPMessage_m.h>
Public Member Functions | |
virtual | ~SCTPMessage_Base () |
virtual SCTPMessage_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual uint16_t | getSrcPort () const |
virtual void | setSrcPort (uint16_t srcPort) |
virtual uint16_t | getDestPort () const |
virtual void | setDestPort (uint16_t destPort) |
virtual uint32_t | getTag () const |
virtual void | setTag (uint32_t tag) |
virtual bool | getChecksumOk () const |
virtual void | setChecksumOk (bool checksumOk) |
virtual void | setChunksArraySize (unsigned int size)=0 |
virtual unsigned int | getChunksArraySize () const =0 |
virtual cPacketPtr & | getChunks (unsigned int k)=0 |
virtual const cPacketPtr & | getChunks (unsigned int k) const |
virtual void | setChunks (unsigned int k, const cPacketPtr &chunks)=0 |
Protected Member Functions | |
bool | operator== (const SCTPMessage_Base &) |
SCTPMessage_Base (const char *name=nullptr, short kind=0) | |
SCTPMessage_Base (const SCTPMessage_Base &other) | |
SCTPMessage_Base & | operator= (const SCTPMessage_Base &other) |
Protected Attributes | |
uint16_t | srcPort |
uint16_t | destPort |
uint32_t | tag |
bool | checksumOk |
Private Member Functions | |
void | copy (const SCTPMessage_Base &other) |
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:36
by nedtool.
message SCTPMessage extends cPacket { @customize(true); // Source Port uint16 srcPort; // Destination Port uint16 destPort; // Verification Tag uint32 tag; bool checksumOk; abstract cPacketPtr chunks[]; }
SCTPMessage_Base is only useful if it gets subclassed, and SCTPMessage is derived from it. The minimum code to be written for SCTPMessage is the following:
class INET_API SCTPMessage : public SCTPMessage_Base { private: void copy(const SCTPMessage& other) { ... }
public: SCTPMessage(const char *name=nullptr, short kind=0) : SCTPMessage_Base(name,kind) {} SCTPMessage(const SCTPMessage& other) : SCTPMessage_Base(other) {copy(other);} SCTPMessage& operator=(const SCTPMessage& other) {if (this==&other) return *this; SCTPMessage_Base::operator=(other); copy(other); return *this;} virtual SCTPMessage *dup() const override {return new SCTPMessage(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from SCTPMessage_Base };
The following should go into a .cc (.cpp) file:
Register_Class(SCTPMessage)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::sctp::SCTPMessage.
|
virtual |
|
pure virtual |
|
inlinevirtual |
Referenced by getChunks().
|
pure virtual |
Implemented in inet::sctp::SCTPMessage.
|
virtual |
Referenced by inet::PacketDrillApp::compareSctpPacket(), inet::sctp::SCTPMessage::copy(), inet::sctp::SCTPNatHook::datagramForwardHook(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::serializer::SCTPSerializer::deserialize(), inet::sctp::SCTPMessage::getDestinationPort(), inet::sctp::SCTP::handleMessage(), inet::sctp::SCTPAssociation::printSegmentBrief(), inet::sctp::SCTPAssociation::process_RCV_Message(), inet::sctp::SCTPAssociation::processSCTPMessage(), inet::PacketDump::sctpDump(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPNatHook::sendBackError(), and inet::sctp::SCTP::sendShutdownCompleteFromMain().
|
virtual |
Referenced by inet::PacketDrillApp::compareSctpPacket(), inet::sctp::SCTPMessage::copy(), inet::sctp::SCTPNatHook::datagramForwardHook(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::serializer::SCTPSerializer::deserialize(), inet::sctp::SCTPMessage::getSourcePort(), inet::sctp::SCTP::handleMessage(), inet::sctp::SCTPAssociation::printSegmentBrief(), inet::sctp::SCTPAssociation::process_RCV_Message(), inet::sctp::SCTPAssociation::processSCTPMessage(), inet::PacketDump::sctpDump(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPNatHook::sendBackError(), and inet::sctp::SCTP::sendShutdownCompleteFromMain().
|
virtual |
Referenced by inet::PacketDrillApp::compareSctpPacket(), inet::sctp::SCTPMessage::copy(), inet::sctp::SCTPNatHook::datagramForwardHook(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::serializer::SCTPSerializer::deserialize(), inet::sctp::SCTP::handleMessage(), inet::sctp::SCTPAssociation::printSegmentBrief(), inet::sctp::SCTPAssociation::process_RCV_Message(), inet::PacketDump::sctpDump(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPNatHook::sendBackError(), inet::sctp::SCTPAssociation::sendInitAck(), inet::sctp::SCTP::sendShutdownCompleteFromMain(), and inet::sctp::SCTPAssociation::sendToIP().
|
protected |
Referenced by inet::sctp::SCTPMessage::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
Referenced by PacketDrill::buildSCTPPacket(), inet::PacketDrillApp::closeAllSockets(), inet::sctp::SCTPMessage::copy(), inet::serializer::SCTPSerializer::parse(), inet::PacketDump::sctpDump(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPNatHook::sendBackError(), inet::sctp::SCTP::sendShutdownCompleteFromMain(), and inet::sctp::SCTPAssociation::sendToIP().
|
pure virtual |
|
pure virtual |
|
virtual |
Referenced by PacketDrill::buildSCTPPacket(), inet::PacketDrillApp::closeAllSockets(), inet::sctp::SCTPMessage::copy(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::serializer::SCTPSerializer::parse(), inet::sctp::SCTPAssociation::processAddInAndOutResetRequestArrived(), inet::sctp::SCTPAssociation::processAsconfArrived(), inet::sctp::SCTPAssociation::sendAbort(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPAssociation::sendAddInAndOutStreamsRequest(), inet::sctp::SCTPAssociation::sendAddOutgoingStreamsRequest(), inet::sctp::SCTPAssociation::sendAsconf(), inet::sctp::SCTPAssociation::sendAsconfAck(), inet::sctp::SCTPNatHook::sendBackError(), inet::sctp::SCTPAssociation::sendBundledOutgoingResetAndResponse(), inet::sctp::SCTPAssociation::sendCookieAck(), inet::sctp::SCTPAssociation::sendCookieEcho(), inet::sctp::SCTPAssociation::sendDoubleStreamResetResponse(), inet::sctp::SCTPAssociation::sendHeartbeat(), inet::sctp::SCTPAssociation::sendHeartbeatAck(), inet::sctp::SCTPAssociation::sendInitAck(), inet::sctp::SCTPAssociation::sendOutgoingRequestAndResponse(), inet::sctp::SCTPAssociation::sendOutgoingResetRequest(), inet::sctp::SCTPAssociation::sendShutdown(), inet::sctp::SCTPAssociation::sendShutdownAck(), inet::sctp::SCTPAssociation::sendShutdownComplete(), inet::sctp::SCTP::sendShutdownCompleteFromMain(), inet::sctp::SCTPAssociation::sendStreamResetRequest(), inet::sctp::SCTPAssociation::sendStreamResetResponse(), inet::sctp::SCTPAssociation::sendToIP(), and inet::sctp::SCTPMessage::setDestinationPort().
|
virtual |
Referenced by PacketDrill::buildSCTPPacket(), inet::PacketDrillApp::closeAllSockets(), inet::sctp::SCTPMessage::copy(), inet::sctp::SCTPNatHook::datagramForwardHook(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::serializer::SCTPSerializer::parse(), inet::sctp::SCTPAssociation::processAddInAndOutResetRequestArrived(), inet::sctp::SCTPAssociation::processAsconfArrived(), inet::sctp::SCTPAssociation::sendAbort(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPAssociation::sendAddInAndOutStreamsRequest(), inet::sctp::SCTPAssociation::sendAddOutgoingStreamsRequest(), inet::sctp::SCTPAssociation::sendAsconf(), inet::sctp::SCTPAssociation::sendAsconfAck(), inet::sctp::SCTPNatHook::sendBackError(), inet::sctp::SCTPAssociation::sendBundledOutgoingResetAndResponse(), inet::sctp::SCTPAssociation::sendCookieAck(), inet::sctp::SCTPAssociation::sendCookieEcho(), inet::sctp::SCTPAssociation::sendDoubleStreamResetResponse(), inet::sctp::SCTPAssociation::sendHeartbeat(), inet::sctp::SCTPAssociation::sendHeartbeatAck(), inet::sctp::SCTPAssociation::sendInitAck(), inet::sctp::SCTPAssociation::sendOutgoingRequestAndResponse(), inet::sctp::SCTPAssociation::sendOutgoingResetRequest(), inet::sctp::SCTPAssociation::sendShutdown(), inet::sctp::SCTPAssociation::sendShutdownAck(), inet::sctp::SCTPAssociation::sendShutdownComplete(), inet::sctp::SCTP::sendShutdownCompleteFromMain(), inet::sctp::SCTPAssociation::sendStreamResetRequest(), inet::sctp::SCTPAssociation::sendStreamResetResponse(), inet::sctp::SCTPAssociation::sendToIP(), and inet::sctp::SCTPMessage::setSourcePort().
|
virtual |
Referenced by PacketDrill::buildSCTPPacket(), inet::PacketDrillApp::closeAllSockets(), inet::sctp::SCTPMessage::copy(), inet::serializer::SCTPSerializer::parse(), inet::PacketDrillApp::runEvent(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPNatHook::sendBackError(), inet::sctp::SCTPAssociation::sendInitAck(), inet::sctp::SCTP::sendShutdownCompleteFromMain(), and inet::sctp::SCTPAssociation::sendToIP().
|
protected |
|
protected |
|
protected |
|
protected |