|
INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/sctp/SctpHeader.msg:220 by opp_msgtool.
More...
#include <SctpHeader_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 (size_t size)=0 |
| virtual size_t | getParametersArraySize () const =0 |
| virtual const SctpParameter * | getParameters (size_t k) const =0 |
| virtual SctpParameter * | getParametersForUpdate (size_t k) |
| virtual void | setParameters (size_t k, SctpParameter *parameters)=0 |
| virtual void | insertParameters (size_t k, SctpParameter *parameters)=0 |
| void | insertParameters (SctpParameter *parameters) |
| virtual void | appendParameters (SctpParameter *parameters)=0 |
| virtual void | eraseParameters (size_t k)=0 |
Public Member Functions inherited from inet::sctp::SctpChunk | |
| SctpChunk (const char *name=nullptr) | |
| SctpChunk (const SctpChunk &other) | |
| virtual | ~SctpChunk () |
| SctpChunk & | operator= (const SctpChunk &other) |
| virtual uint8_t | getSctpChunkType () const |
| virtual void | setSctpChunkType (uint8_t sctpChunkType) |
| virtual uint32_t | getFlags () const |
| virtual void | setFlags (uint32_t flags) |
| virtual unsigned short | getLength () const |
| virtual void | setLength (unsigned short length) |
| virtual void | setChunkNameArraySize (size_t size) |
| virtual size_t | getChunkNameArraySize () const |
| virtual char | getChunkName (size_t k) const |
| virtual void | setChunkName (size_t k, char chunkName) |
| virtual void | insertChunkName (size_t k, char chunkName) |
| void | insertChunkName (char chunkName) |
| virtual void | appendChunkName (char chunkName) |
| virtual void | eraseChunkName (size_t k) |
Protected Member Functions | |
| bool | operator== (const SctpErrorChunk_Base &)=delete |
| SctpErrorChunk_Base (const char *name=nullptr) | |
| 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 &)=delete |
Protected Attributes | |
| bool | TBit = 0 |
| bool | MBit = 0 |
Protected Attributes inherited from inet::sctp::SctpChunk | |
| uint8_t | sctpChunkType = 0 |
| uint32_t | flags = 0 |
| unsigned short | length = 0 |
| char * | chunkName = nullptr |
| size_t | chunkName_arraysize = 0 |
Private Member Functions | |
| void | copy (const SctpErrorChunk_Base &other) |
Class generated from inet/transportlayer/sctp/SctpHeader.msg:220 by opp_msgtool.
class SctpErrorChunk extends SctpChunk { @customize; bool TBit = 0; bool MBit = 0; abstract SctpParameter *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) : SctpErrorChunk_Base(name) {}
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 |
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::sctp::SctpChunk.
Reimplemented in inet::sctp::SctpErrorChunk.
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
virtual |
Referenced by inet::sctp::SctpHeaderSerializer::serialize().
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
inlinevirtual |
|
virtual |
Referenced by inet::sctp::SctpHeaderSerializer::serialize().
|
inline |
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
protected |
Referenced by inet::sctp::SctpErrorChunk::operator=().
|
protecteddelete |
|
overridevirtual |
Reimplemented from inet::sctp::SctpChunk.
|
overridevirtual |
Reimplemented from inet::sctp::SctpChunk.
|
virtual |
Referenced by inet::sctp::SctpNatHook::sendBackError().
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
pure virtual |
Implemented in inet::sctp::SctpErrorChunk.
|
virtual |
Referenced by inet::sctp::SctpNatHook::sendBackError().
|
protected |
|
protected |