INET Framework for OMNeT++/OMNEST
inet::GenericDatagram Class Reference

Represents a generic datagram. More...

#include <GenericDatagram.h>

Inheritance diagram for inet::GenericDatagram:
inet::GenericDatagram_Base inet::INetworkDatagram

Public Member Functions

 GenericDatagram (const char *name=nullptr, int kind=0)
 
 GenericDatagram (const GenericDatagram &other)
 
GenericDatagramoperator= (const GenericDatagram &other)
 
virtual GenericDatagramdup () const override
 
virtual L3Address getSourceAddress () const override
 
virtual void setSourceAddress (const L3Address &addr) override
 
virtual L3Address getDestinationAddress () const override
 
virtual void setDestinationAddress (const L3Address &addr) override
 
virtual int getTransportProtocol () const override
 
virtual void setTransportProtocol (int protocol) override
 
- Public Member Functions inherited from inet::GenericDatagram_Base
virtual ~GenericDatagram_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual L3Address_getSrcAddr ()
 
virtual const L3Address_getSrcAddr () const
 
virtual L3Address_getDestAddr ()
 
virtual const L3Address_getDestAddr () const
 
virtual short getHopLimit () const
 
virtual void setHopLimit (short hopLimit)
 
virtual TLVOptionsgetTlvOptions ()
 
virtual const TLVOptionsgetTlvOptions () const
 
virtual void setTlvOptions (const TLVOptions &tlvOptions)
 
- Public Member Functions inherited from inet::INetworkDatagram
virtual ~INetworkDatagram ()
 

Additional Inherited Members

- Protected Member Functions inherited from inet::GenericDatagram_Base
bool operator== (const GenericDatagram_Base &)
 
 GenericDatagram_Base (const char *name=nullptr, short kind=0)
 
 GenericDatagram_Base (const GenericDatagram_Base &other)
 
GenericDatagram_Baseoperator= (const GenericDatagram_Base &other)
 
- Protected Attributes inherited from inet::GenericDatagram_Base
L3Address sourceAddress
 
L3Address destinationAddress
 
int transportProtocol
 
short hopLimit
 
TLVOptions tlvOptions
 

Detailed Description

Represents a generic datagram.

More info in the GenericDatagram.msg file (and the documentation generated from it).

Constructor & Destructor Documentation

inet::GenericDatagram::GenericDatagram ( const char *  name = nullptr,
int  kind = 0 
)
inline
35 : GenericDatagram_Base(name, kind) {}
GenericDatagram_Base(const char *name=nullptr, short kind=0)
inet::GenericDatagram::GenericDatagram ( const GenericDatagram other)
inline
36 : GenericDatagram_Base(other.getName()) { operator=(other); }
GenericDatagram & operator=(const GenericDatagram &other)
Definition: GenericDatagram.h:37
GenericDatagram_Base(const char *name=nullptr, short kind=0)

Member Function Documentation

virtual GenericDatagram* inet::GenericDatagram::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::GenericDatagram_Base.

Referenced by inet::GenericNetworkProtocol::routeMulticastPacket().

38 { return new GenericDatagram(*this); }
GenericDatagram(const char *name=nullptr, int kind=0)
Definition: GenericDatagram.h:35
virtual L3Address inet::GenericDatagram::getSourceAddress ( ) const
inlineoverridevirtual
virtual int inet::GenericDatagram::getTransportProtocol ( ) const
inlineoverridevirtual
GenericDatagram& inet::GenericDatagram::operator= ( const GenericDatagram other)
inline
37 { GenericDatagram_Base::operator=(other); return *this; }
GenericDatagram_Base & operator=(const GenericDatagram_Base &other)
virtual void inet::GenericDatagram::setDestinationAddress ( const L3Address addr)
inlineoverridevirtual

Implements inet::INetworkDatagram.

virtual void setDestinationAddress(const L3Address &destinationAddress)
virtual void inet::GenericDatagram::setSourceAddress ( const L3Address addr)
inlineoverridevirtual

Implements inet::INetworkDatagram.

Referenced by inet::GenericNetworkProtocol::routePacket().

virtual void setSourceAddress(const L3Address &sourceAddress)
virtual void inet::GenericDatagram::setTransportProtocol ( int  protocol)
inlineoverridevirtual

Implements inet::INetworkDatagram.

virtual void setTransportProtocol(int transportProtocol)
uint8_t protocol
Definition: TCP_NSC.cc:88

The documentation for this class was generated from the following file: