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

Class generated from inet/transportlayer/contract/udp/UdpControlInfo.msg:194 by opp_msgtool. More...

#include <UdpControlInfo_m.h>

Inheritance diagram for inet::UdpSetDscpCommand:
inet::UdpSetOptionCommand inet::UdpControlInfo

Public Member Functions

 UdpSetDscpCommand ()
 
 UdpSetDscpCommand (const UdpSetDscpCommand &other)
 
virtual ~UdpSetDscpCommand ()
 
UdpSetDscpCommandoperator= (const UdpSetDscpCommand &other)
 
virtual UdpSetDscpCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual short getDscp () const
 
virtual void setDscp (short dscp)
 
- Public Member Functions inherited from inet::UdpSetOptionCommand
 UdpSetOptionCommand ()
 
 UdpSetOptionCommand (const UdpSetOptionCommand &other)
 
virtual ~UdpSetOptionCommand ()
 
UdpSetOptionCommandoperator= (const UdpSetOptionCommand &other)
 
virtual UdpSetOptionSubcode getOptionCode () const
 
virtual void setOptionCode (UdpSetOptionSubcode optionCode)
 
- Public Member Functions inherited from inet::UdpControlInfo
 UdpControlInfo ()
 
 UdpControlInfo (const UdpControlInfo &other)
 
virtual ~UdpControlInfo ()
 
UdpControlInfooperator= (const UdpControlInfo &other)
 

Protected Member Functions

bool operator== (const UdpSetDscpCommand &)=delete
 
- Protected Member Functions inherited from inet::UdpSetOptionCommand
bool operator== (const UdpSetOptionCommand &)=delete
 
- Protected Member Functions inherited from inet::UdpControlInfo
bool operator== (const UdpControlInfo &)=delete
 

Protected Attributes

short dscp = 0
 
- Protected Attributes inherited from inet::UdpSetOptionCommand
UdpSetOptionSubcode optionCode = static_cast<UdpSetOptionSubcode>(-1)
 

Private Member Functions

void copy (const UdpSetDscpCommand &other)
 

Detailed Description

Class generated from inet/transportlayer/contract/udp/UdpControlInfo.msg:194 by opp_msgtool.

//
// Control info for setting the DSCP (DiffServ Code Point)
// header field on outgoing Ipv4/Ipv6 packets sent from an Udp socket.
// This is a 6-bit field.
// To set the option, send a message to  the ~Udp module with kind=UDP_C_SETOPTION
// and an and instance of this control info class attached.
//
// @see ~UdpCommandCode
//
class UdpSetDscpCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_DSCP;
    short dscp;  // diffserv code point for Ipv4/Ipv6
}

Constructor & Destructor Documentation

◆ UdpSetDscpCommand() [1/2]

inet::UdpSetDscpCommand::UdpSetDscpCommand ( )

◆ UdpSetDscpCommand() [2/2]

inet::UdpSetDscpCommand::UdpSetDscpCommand ( const UdpSetDscpCommand other)

◆ ~UdpSetDscpCommand()

virtual inet::UdpSetDscpCommand::~UdpSetDscpCommand ( )
virtual

Member Function Documentation

◆ copy()

void inet::UdpSetDscpCommand::copy ( const UdpSetDscpCommand other)
private

◆ dup()

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

Reimplemented from inet::UdpSetOptionCommand.

593 {return new UdpSetDscpCommand(*this);}

◆ getDscp()

virtual short inet::UdpSetDscpCommand::getDscp ( ) const
virtual

◆ operator=()

UdpSetDscpCommand& inet::UdpSetDscpCommand::operator= ( const UdpSetDscpCommand other)

◆ operator==()

bool inet::UdpSetDscpCommand::operator== ( const UdpSetDscpCommand )
protecteddelete

◆ parsimPack()

virtual void inet::UdpSetDscpCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimUnpacking().

◆ setDscp()

virtual void inet::UdpSetDscpCommand::setDscp ( short  dscp)
virtual

Member Data Documentation

◆ dscp

short inet::UdpSetDscpCommand::dscp = 0
protected

The documentation for this class was generated from the following file:
inet::UdpSetDscpCommand::UdpSetDscpCommand
UdpSetDscpCommand()