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

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

#include <UDPControlInfo_m.h>

Inheritance diagram for inet::UDPDataIndication:
inet::UDPControlInfo

Public Member Functions

 UDPDataIndication ()
 
 UDPDataIndication (const UDPDataIndication &other)
 
virtual ~UDPDataIndication ()
 
UDPDataIndicationoperator= (const UDPDataIndication &other)
 
virtual UDPDataIndicationdup () 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)
 
virtual int getTtl () const
 
virtual void setTtl (int ttl)
 
virtual int getInterfaceId () const
 
virtual void setInterfaceId (int interfaceId)
 
virtual unsigned char getTypeOfService () const
 
virtual void setTypeOfService (unsigned char typeOfService)
 
- 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 UDPDataIndication &)
 
- Protected Member Functions inherited from inet::UDPControlInfo
bool operator== (const UDPControlInfo &)
 

Protected Attributes

L3Address srcAddr
 
L3Address destAddr
 
int srcPort
 
int destPort
 
int ttl
 
int interfaceId
 
unsigned char typeOfService
 
- Protected Attributes inherited from inet::UDPControlInfo
int sockId
 

Private Member Functions

void copy (const UDPDataIndication &other)
 

Detailed Description

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

//
// Control info that is attached to received data packets, sent up from the
// ~UDP module to the application with UDP_I_DATA as message kind.
//
// @see ~UDPCommandCode
//
class UDPDataIndication extends UDPControlInfo
{
    L3Address srcAddr;   // source IPv4 or IPv6 address of the received packet
    L3Address destAddr;  // destination IPv4 or IPv6 address of the received packet
    int srcPort;           // source port of the received packet
    int destPort;          // destination port of the received packet
    int ttl;               // TTL field of the received packet
    int interfaceId;       // interface on which the packet was received (see ~InterfaceTable)
    unsigned char typeOfService; // IPv4 Type of Service / IPv6 Traffic Class field of received packet
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::UDPControlInfo.

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

Referenced by getDestAddr().

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

Referenced by getSrcAddr().

392 {return const_cast<UDPDataIndication*>(this)->getSrcAddr();}
virtual L3Address & getSrcAddr()
virtual int inet::UDPDataIndication::getTtl ( ) const
virtual
virtual unsigned char inet::UDPDataIndication::getTypeOfService ( ) const
virtual
UDPDataIndication& inet::UDPDataIndication::operator= ( const UDPDataIndication other)
bool inet::UDPDataIndication::operator== ( const UDPDataIndication )
protected
virtual void inet::UDPDataIndication::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimUnpacking().

virtual void inet::UDPDataIndication::setDestAddr ( const L3Address destAddr)
virtual

Referenced by inet::UDP::sendUp().

virtual void inet::UDPDataIndication::setDestPort ( int  destPort)
virtual

Referenced by inet::UDP::sendUp().

virtual void inet::UDPDataIndication::setInterfaceId ( int  interfaceId)
virtual

Referenced by inet::UDP::sendUp().

virtual void inet::UDPDataIndication::setSrcAddr ( const L3Address srcAddr)
virtual

Referenced by inet::UDP::sendUp().

virtual void inet::UDPDataIndication::setSrcPort ( int  srcPort)
virtual

Referenced by inet::UDP::sendUp().

virtual void inet::UDPDataIndication::setTtl ( int  ttl)
virtual

Referenced by inet::UDP::sendUp().

virtual void inet::UDPDataIndication::setTypeOfService ( unsigned char  typeOfService)
virtual

Referenced by inet::UDP::sendUp().

Member Data Documentation

L3Address inet::UDPDataIndication::destAddr
protected
int inet::UDPDataIndication::destPort
protected
int inet::UDPDataIndication::interfaceId
protected
L3Address inet::UDPDataIndication::srcAddr
protected
int inet::UDPDataIndication::srcPort
protected
int inet::UDPDataIndication::ttl
protected
unsigned char inet::UDPDataIndication::typeOfService
protected

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