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

Represents an flood datagram. More...

#include <FloodDatagram.h>

Inheritance diagram for inet::FloodDatagram:
inet::FloodDatagram_Base inet::INetworkDatagram inet::NetworkDatagramBase

Public Member Functions

 FloodDatagram (const char *name=nullptr, int kind=0)
 
 FloodDatagram (const FloodDatagram &other)
 
FloodDatagramoperator= (const FloodDatagram &other)
 
virtual FloodDatagramdup () const override
 
virtual L3Address getSourceAddress () const override
 
virtual void setSourceAddress (const L3Address &address) override
 
virtual L3Address getDestinationAddress () const override
 
virtual void setDestinationAddress (const L3Address &address) override
 
virtual int getTransportProtocol () const override
 
virtual void setTransportProtocol (int protocol) override
 
- Public Member Functions inherited from inet::FloodDatagram_Base
virtual ~FloodDatagram_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getTtl () const
 
virtual void setTtl (int ttl)
 
virtual unsigned long getSeqNum () const
 
virtual void setSeqNum (unsigned long seqNum)
 
- Public Member Functions inherited from inet::NetworkDatagramBase
 NetworkDatagramBase (const char *name=nullptr, short kind=0)
 
 NetworkDatagramBase (const NetworkDatagramBase &other)
 
virtual ~NetworkDatagramBase ()
 
NetworkDatagramBaseoperator= (const NetworkDatagramBase &other)
 
virtual L3AddressgetSrcAddr ()
 
virtual const L3AddressgetSrcAddr () const
 
virtual void setSrcAddr (const L3Address &srcAddr)
 
virtual L3AddressgetDestAddr ()
 
virtual const L3AddressgetDestAddr () const
 
virtual void setDestAddr (const L3Address &destAddr)
 
- Public Member Functions inherited from inet::INetworkDatagram
virtual ~INetworkDatagram ()
 

Additional Inherited Members

- Protected Member Functions inherited from inet::FloodDatagram_Base
bool operator== (const FloodDatagram_Base &)
 
 FloodDatagram_Base (const char *name=nullptr, short kind=0)
 
 FloodDatagram_Base (const FloodDatagram_Base &other)
 
FloodDatagram_Baseoperator= (const FloodDatagram_Base &other)
 
- Protected Member Functions inherited from inet::NetworkDatagramBase
bool operator== (const NetworkDatagramBase &)
 
- Protected Attributes inherited from inet::FloodDatagram_Base
int ttl
 
unsigned long seqNum
 
int transportProtocol
 
- Protected Attributes inherited from inet::NetworkDatagramBase
L3Address srcAddr
 
L3Address destAddr
 

Detailed Description

Represents an flood datagram.

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

Constructor & Destructor Documentation

inet::FloodDatagram::FloodDatagram ( const char *  name = nullptr,
int  kind = 0 
)
inline
34 : FloodDatagram_Base(name, kind) {}
FloodDatagram_Base(const char *name=nullptr, short kind=0)
inet::FloodDatagram::FloodDatagram ( const FloodDatagram other)
inline
35 : FloodDatagram_Base(other) {}
FloodDatagram_Base(const char *name=nullptr, short kind=0)

Member Function Documentation

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

Reimplemented from inet::FloodDatagram_Base.

Referenced by inet::Flood::handleLowerPacket().

38 { return new FloodDatagram(*this); }
FloodDatagram(const char *name=nullptr, int kind=0)
Definition: FloodDatagram.h:34
virtual L3Address inet::FloodDatagram::getDestinationAddress ( ) const
inlineoverridevirtual

Implements inet::INetworkDatagram.

Referenced by inet::Flood::handleLowerPacket().

42 { return L3Address(getDestAddr()); }
virtual L3Address & getDestAddr()
virtual L3Address inet::FloodDatagram::getSourceAddress ( ) const
inlineoverridevirtual
virtual int inet::FloodDatagram::getTransportProtocol ( ) const
inlineoverridevirtual
FloodDatagram& inet::FloodDatagram::operator= ( const FloodDatagram other)
inline
36 { FloodDatagram_Base::operator=(other); return *this; }
FloodDatagram_Base & operator=(const FloodDatagram_Base &other)
virtual void inet::FloodDatagram::setDestinationAddress ( const L3Address address)
inlineoverridevirtual

Implements inet::INetworkDatagram.

43 { setDestAddr(address.toModuleId()); }
virtual void setDestAddr(const L3Address &destAddr)
virtual void inet::FloodDatagram::setSourceAddress ( const L3Address address)
inlineoverridevirtual

Implements inet::INetworkDatagram.

41 { setSrcAddr(address.toModuleId()); }
virtual void setSrcAddr(const L3Address &srcAddr)
virtual void inet::FloodDatagram::setTransportProtocol ( int  protocol)
inlineoverridevirtual

Implements inet::INetworkDatagram.

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

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