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

Class generated from inet/transportlayer/contract/udp/UDPControlInfo.msg:160 by nedtool. More...

#include <UDPControlInfo_m.h>

Inheritance diagram for inet::UDPErrorIndication:
inet::UDPControlInfo

Public Member Functions

 UDPErrorIndication ()
 
 UDPErrorIndication (const UDPErrorIndication &other)
 
virtual ~UDPErrorIndication ()
 
UDPErrorIndicationoperator= (const UDPErrorIndication &other)
 
virtual UDPErrorIndicationdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual L3AddressgetSrcAddr ()
 
virtual const L3AddressgetSrcAddr () const
 
virtual void setSrcAddr (const L3Address &srcAddr)
 
virtual L3AddressgetDestAddr ()
 
virtual const L3AddressgetDestAddr () const
 
virtual void setDestAddr (const L3Address &destAddr)
 
virtual int getSrcPort () const
 
virtual void setSrcPort (int srcPort)
 
virtual int getDestPort () const
 
virtual void setDestPort (int destPort)
 
- Public Member Functions inherited from inet::UDPControlInfo
 UDPControlInfo ()
 
 UDPControlInfo (const UDPControlInfo &other)
 
virtual ~UDPControlInfo ()
 
UDPControlInfooperator= (const UDPControlInfo &other)
 
virtual int getSockId () const
 
virtual void setSockId (int sockId)
 

Protected Member Functions

bool operator== (const UDPErrorIndication &)
 
- Protected Member Functions inherited from inet::UDPControlInfo
bool operator== (const UDPControlInfo &)
 

Protected Attributes

L3Address srcAddr
 
L3Address destAddr
 
int srcPort
 
int destPort
 
- Protected Attributes inherited from inet::UDPControlInfo
int sockId
 

Private Member Functions

void copy (const UDPErrorIndication &other)
 

Detailed Description

Class generated from inet/transportlayer/contract/udp/UDPControlInfo.msg:160 by nedtool.

//
// Control info that is sent up from the ~UDP module to the application with
// UDP_I_ERROR as message kind when ~UDP receives an ICMP error for a packet
// previously sent from the socket.
//
// @see ~UDPCommandCode
//
class UDPErrorIndication extends UDPControlInfo
{
    L3Address srcAddr;   // source IPv4 or IPv6 address of the undeliverable packet
    L3Address destAddr;  // destination IPv4 or IPv6 address of the undeliverable packet
    int srcPort;           // source port of the undeliverable packet
    int destPort;          // destination port of the undeliverable packet
}

Constructor & Destructor Documentation

inet::UDPErrorIndication::UDPErrorIndication ( )
inet::UDPErrorIndication::UDPErrorIndication ( const UDPErrorIndication other)
virtual inet::UDPErrorIndication::~UDPErrorIndication ( )
virtual

Member Function Documentation

void inet::UDPErrorIndication::copy ( const UDPErrorIndication other)
private
virtual UDPErrorIndication* inet::UDPErrorIndication::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::UDPControlInfo.

451 {return new UDPErrorIndication(*this);}
virtual L3Address& inet::UDPErrorIndication::getDestAddr ( )
virtual
virtual const L3Address& inet::UDPErrorIndication::getDestAddr ( ) const
inlinevirtual

Referenced by getDestAddr().

460 {return const_cast<UDPErrorIndication*>(this)->getDestAddr();}
virtual L3Address & getDestAddr()
virtual int inet::UDPErrorIndication::getDestPort ( ) const
virtual
virtual L3Address& inet::UDPErrorIndication::getSrcAddr ( )
virtual
virtual const L3Address& inet::UDPErrorIndication::getSrcAddr ( ) const
inlinevirtual

Referenced by getSrcAddr().

457 {return const_cast<UDPErrorIndication*>(this)->getSrcAddr();}
virtual L3Address & getSrcAddr()
virtual int inet::UDPErrorIndication::getSrcPort ( ) const
virtual
UDPErrorIndication& inet::UDPErrorIndication::operator= ( const UDPErrorIndication other)
bool inet::UDPErrorIndication::operator== ( const UDPErrorIndication )
protected
virtual void inet::UDPErrorIndication::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimPacking().

virtual void inet::UDPErrorIndication::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimUnpacking().

virtual void inet::UDPErrorIndication::setDestAddr ( const L3Address destAddr)
virtual
virtual void inet::UDPErrorIndication::setDestPort ( int  destPort)
virtual
virtual void inet::UDPErrorIndication::setSrcAddr ( const L3Address srcAddr)
virtual
virtual void inet::UDPErrorIndication::setSrcPort ( int  srcPort)
virtual

Member Data Documentation

L3Address inet::UDPErrorIndication::destAddr
protected
int inet::UDPErrorIndication::destPort
protected
L3Address inet::UDPErrorIndication::srcAddr
protected
int inet::UDPErrorIndication::srcPort
protected

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