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

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

#include <UdpControlInfo_m.h>

Inheritance diagram for inet::UdpSetTosCommand:
inet::UdpSetOptionCommand inet::UdpControlInfo

Public Member Functions

 UdpSetTosCommand ()
 
 UdpSetTosCommand (const UdpSetTosCommand &other)
 
virtual ~UdpSetTosCommand ()
 
UdpSetTosCommandoperator= (const UdpSetTosCommand &other)
 
virtual UdpSetTosCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual short getTos () const
 
virtual void setTos (short tos)
 
- 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 UdpSetTosCommand &)=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 tos = 0
 
- Protected Attributes inherited from inet::UdpSetOptionCommand
UdpSetOptionSubcode optionCode = static_cast<UdpSetOptionSubcode>(-1)
 

Private Member Functions

void copy (const UdpSetTosCommand &other)
 

Detailed Description

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

//
// Control info for setting the TOS (Type Of Service) / Traffic Class
// header field on outgoing Ipv4/Ipv6 packets sent from an Udp socket.
// This is a 8-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 UdpSetTosCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_TOS;
    short tos;  // type of service for Ipv4 / Traffic class for Ipv6
}

Constructor & Destructor Documentation

◆ UdpSetTosCommand() [1/2]

inet::UdpSetTosCommand::UdpSetTosCommand ( )

◆ UdpSetTosCommand() [2/2]

inet::UdpSetTosCommand::UdpSetTosCommand ( const UdpSetTosCommand other)

◆ ~UdpSetTosCommand()

virtual inet::UdpSetTosCommand::~UdpSetTosCommand ( )
virtual

Member Function Documentation

◆ copy()

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

◆ dup()

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

Reimplemented from inet::UdpSetOptionCommand.

639 {return new UdpSetTosCommand(*this);}

◆ getTos()

virtual short inet::UdpSetTosCommand::getTos ( ) const
virtual

◆ operator=()

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

◆ operator==()

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

◆ parsimPack()

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

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimUnpacking().

◆ setTos()

virtual void inet::UdpSetTosCommand::setTos ( short  tos)
virtual

Member Data Documentation

◆ tos

short inet::UdpSetTosCommand::tos = 0
protected

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