INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:236
by nedtool.
More...
#include <SCTPMessage_m.h>
Public Member Functions | |
virtual | ~SCTPErrorChunk_Base () |
virtual SCTPErrorChunk_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual bool | getTBit () const |
virtual void | setTBit (bool TBit) |
virtual bool | getMBit () const |
virtual void | setMBit (bool MBit) |
virtual void | setParametersArraySize (unsigned int size)=0 |
virtual unsigned int | getParametersArraySize () const =0 |
virtual cPacketPtr & | getParameters (unsigned int k)=0 |
virtual const cPacketPtr & | getParameters (unsigned int k) const |
virtual void | setParameters (unsigned int k, const cPacketPtr ¶meters)=0 |
Public Member Functions inherited from inet::sctp::SCTPChunk | |
SCTPChunk (const char *name=nullptr, short kind=0) | |
SCTPChunk (const SCTPChunk &other) | |
virtual | ~SCTPChunk () |
SCTPChunk & | operator= (const SCTPChunk &other) |
virtual uint8_t | getChunkType () const |
virtual void | setChunkType (uint8_t chunkType) |
virtual uint32_t | getFlags () const |
virtual void | setFlags (uint32_t flags) |
Protected Member Functions | |
bool | operator== (const SCTPErrorChunk_Base &) |
SCTPErrorChunk_Base (const char *name=nullptr, short kind=0) | |
SCTPErrorChunk_Base (const SCTPErrorChunk_Base &other) | |
SCTPErrorChunk_Base & | operator= (const SCTPErrorChunk_Base &other) |
Protected Member Functions inherited from inet::sctp::SCTPChunk | |
bool | operator== (const SCTPChunk &) |
Protected Attributes | |
bool | TBit |
bool | MBit |
Protected Attributes inherited from inet::sctp::SCTPChunk | |
uint8_t | chunkType |
uint32_t | flags |
Private Member Functions | |
void | copy (const SCTPErrorChunk_Base &other) |
Class generated from inet/transportlayer/sctp/SCTPMessage.msg:236
by nedtool.
message SCTPErrorChunk extends SCTPChunk { @customize(true); bool TBit = 0; bool MBit = 0; abstract cPacketPtr parameters[]; }
SCTPErrorChunk_Base is only useful if it gets subclassed, and SCTPErrorChunk is derived from it. The minimum code to be written for SCTPErrorChunk is the following:
class INET_API SCTPErrorChunk : public SCTPErrorChunk_Base { private: void copy(const SCTPErrorChunk& other) { ... }
public: SCTPErrorChunk(const char *name=nullptr, short kind=0) : SCTPErrorChunk_Base(name,kind) {} SCTPErrorChunk(const SCTPErrorChunk& other) : SCTPErrorChunk_Base(other) {copy(other);} SCTPErrorChunk& operator=(const SCTPErrorChunk& other) {if (this==&other) return *this; SCTPErrorChunk_Base::operator=(other); copy(other); return *this;} virtual SCTPErrorChunk *dup() const override {return new SCTPErrorChunk(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from SCTPErrorChunk_Base };
The following should go into a .cc (.cpp) file:
Register_Class(SCTPErrorChunk)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
Reimplemented in inet::sctp::SCTPErrorChunk.
|
virtual |
Referenced by inet::serializer::SCTPSerializer::deserialize().
|
pure virtual |
|
inlinevirtual |
Referenced by getParameters().
|
pure virtual |
Implemented in inet::sctp::SCTPErrorChunk.
|
virtual |
Referenced by inet::serializer::SCTPSerializer::deserialize().
|
protected |
Referenced by inet::sctp::SCTPErrorChunk::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
|
overridevirtual |
Reimplemented from inet::sctp::SCTPChunk.
|
virtual |
Referenced by inet::sctp::SCTPNatHook::sendBackError().
|
pure virtual |
|
pure virtual |
|
virtual |
Referenced by inet::sctp::SCTPNatHook::sendBackError().
|
protected |
|
protected |