INET Framework for OMNeT++/OMNEST
|
Represents a SCTP Message. More...
#include <SCTPMessage.h>
Public Member Functions | |
SCTPMessage (const char *name=nullptr, int32 kind=0) | |
SCTPMessage (const SCTPMessage &other) | |
~SCTPMessage () | |
SCTPMessage & | operator= (const SCTPMessage &other) |
virtual SCTPMessage * | dup () const override |
virtual void | setChunksArraySize (uint32 size) override |
Generated but unused method, should not be called. More... | |
virtual void | setChunks (uint32 k, const cPacketPtr &chunks_var) override |
Generated but unused method, should not be called. More... | |
virtual uint32 | getChunksArraySize () const override |
Returns the number of chunks in this SCTP packet. More... | |
virtual cPacketPtr & | getChunks (uint32 k) override |
Returns the kth chunk in this SCTP packet. More... | |
virtual void | addChunk (cPacket *msg) |
Adds a message object to the SCTP packet. More... | |
virtual cPacket * | removeChunk () |
Removes and returns the first message object in this SCTP packet. More... | |
virtual cPacket * | removeLastChunk () |
virtual cPacket * | peekFirstChunk () |
virtual cPacket * | peekLastChunk () |
virtual void | replaceChunk (cPacket *msg, uint32 k) |
virtual unsigned int | getSourcePort () const override |
virtual void | setSourcePort (unsigned int port) override |
virtual unsigned int | getDestinationPort () const override |
virtual void | setDestinationPort (unsigned int port) override |
Public Member Functions inherited from inet::ITransportPacket | |
virtual | ~ITransportPacket () |
Protected Attributes | |
std::vector< cPacket * > | chunkList |
Private Member Functions | |
void | copy (const SCTPMessage &other) |
void | clean () |
Additional Inherited Members |
Represents a SCTP Message.
More info in the SCTPMessage.msg file (and the documentation generated from it).
|
inline |
|
inline |
inet::sctp::SCTPMessage::~SCTPMessage | ( | ) |
|
virtual |
Adds a message object to the SCTP packet.
The packet length will be adjusted
Referenced by inet::sctp::SCTPAssociation::addAuthChunkIfNecessary(), PacketDrill::buildSCTPPacket(), inet::PacketDrillApp::closeAllSockets(), inet::serializer::SCTPSerializer::parse(), inet::sctp::SCTPAssociation::processAddInAndOutResetRequestArrived(), inet::sctp::SCTPAssociation::processAsconfArrived(), inet::sctp::SCTPAssociation::processPacketDropArrived(), inet::sctp::SCTPAssociation::retransmitAsconf(), inet::sctp::SCTPAssociation::retransmitCookieEcho(), inet::sctp::SCTPAssociation::retransmitInit(), inet::sctp::SCTPAssociation::retransmitReset(), inet::sctp::SCTPAssociation::retransmitShutdown(), inet::sctp::SCTPAssociation::retransmitShutdownAck(), 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::sendHMacError(), inet::sctp::SCTPAssociation::sendInit(), inet::sctp::SCTPAssociation::sendInitAck(), inet::sctp::SCTPAssociation::sendInvalidStreamError(), inet::sctp::SCTPAssociation::sendOnPath(), inet::sctp::SCTPAssociation::sendOutgoingRequestAndResponse(), inet::sctp::SCTPAssociation::sendOutgoingResetRequest(), inet::sctp::SCTPAssociation::sendPacketDrop(), inet::sctp::SCTPAssociation::sendSack(), inet::sctp::SCTPAssociation::sendShutdown(), inet::sctp::SCTPAssociation::sendShutdownAck(), inet::sctp::SCTPAssociation::sendShutdownComplete(), inet::sctp::SCTP::sendShutdownCompleteFromMain(), inet::sctp::SCTPAssociation::sendStreamResetRequest(), and inet::sctp::SCTPAssociation::sendStreamResetResponse().
|
private |
Referenced by operator=(), inet::sctp::SCTPErrorChunk::operator=(), inet::sctp::SCTPErrorChunk::~SCTPErrorChunk(), ~SCTPMessage(), and inet::sctp::SCTPStreamResetChunk::~SCTPStreamResetChunk().
|
private |
Referenced by operator=(), and inet::sctp::SCTPErrorChunk::operator=().
|
inlineoverridevirtual |
Reimplemented from inet::sctp::SCTPMessage_Base.
Referenced by copy(), inet::sctp::SCTPErrorChunk::copy(), inet::sctp::SCTPStreamResetChunk::copy(), inet::sctp::SCTPStreamResetChunk::operator=(), inet::sctp::SCTPAsconfChunk::operator=(), inet::sctp::SCTPAsconfAckChunk::operator=(), inet::sctp::SCTPAssociation::process_RCV_Message(), and inet::sctp::SCTPAssociation::sendPacketDrop().
|
overridevirtual |
Returns the kth chunk in this SCTP packet.
Referenced by clean(), inet::sctp::SCTP::handleMessage(), inet::sctp::SCTPAssociation::process_RCV_Message(), inet::PacketDrillApp::runEvent(), inet::PacketDump::sctpDump(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPAssociation::sendOnPath(), inet::sctp::SCTPAssociation::sendPacketDrop(), and inet::sctp::SCTPAssociation::storePacket().
|
overridevirtual |
Returns the number of chunks in this SCTP packet.
Implements inet::sctp::SCTPMessage_Base.
Referenced by clean(), inet::PacketDrillApp::compareSctpPacket(), inet::sctp::SCTPNatHook::datagramForwardHook(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::serializer::SCTPSerializer::deserialize(), inet::sctp::SCTPAssociation::disposeOf(), inet::sctp::SCTP::handleMessage(), inet::sctp::SCTPAssociation::process_RCV_Message(), inet::sctp::SCTPAssociation::processPacketDropArrived(), inet::PacketDrillApp::runEvent(), inet::PacketDump::sctpDump(), inet::sctp::SCTP::sendAbortFromMain(), inet::sctp::SCTPAssociation::sendOnPath(), inet::sctp::SCTPAssociation::sendPacketDrop(), and inet::sctp::SCTPAssociation::storePacket().
|
inlineoverridevirtual |
Implements inet::ITransportPacket.
|
inlineoverridevirtual |
Implements inet::ITransportPacket.
SCTPMessage & inet::sctp::SCTPMessage::operator= | ( | const SCTPMessage & | other | ) |
|
virtual |
|
virtual |
|
virtual |
Removes and returns the first message object in this SCTP packet.
Referenced by inet::PacketDrillApp::compareSctpPacket(), inet::sctp::SCTPNatHook::datagramPreRoutingHook(), inet::sctp::SCTPAssociation::disposeOf(), inet::sctp::SCTPAssociation::process_RCV_Message(), inet::sctp::SCTPAssociation::processPacketDropArrived(), and inet::sctp::SCTPAssociation::sendOnPath().
|
virtual |
Referenced by inet::sctp::SCTPAssociation::sendPacketDrop().
|
virtual |
Referenced by inet::sctp::SCTPAssociation::sendOnPath().
|
overridevirtual |
|
overridevirtual |
|
inlineoverridevirtual |
Implements inet::ITransportPacket.
|
inlineoverridevirtual |
Implements inet::ITransportPacket.
|
protected |
Referenced by addChunk(), copy(), getChunks(), getChunksArraySize(), peekFirstChunk(), peekLastChunk(), removeChunk(), removeLastChunk(), and replaceChunk().