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

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

#include <UDPControlInfo_m.h>

Inheritance diagram for inet::UDPSetTypeOfServiceCommand:
inet::UDPSetOptionCommand inet::UDPControlInfo

Public Member Functions

 UDPSetTypeOfServiceCommand ()
 
 UDPSetTypeOfServiceCommand (const UDPSetTypeOfServiceCommand &other)
 
virtual ~UDPSetTypeOfServiceCommand ()
 
UDPSetTypeOfServiceCommandoperator= (const UDPSetTypeOfServiceCommand &other)
 
virtual UDPSetTypeOfServiceCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual char getTos () const
 
virtual void setTos (char tos)
 
- Public Member Functions inherited from inet::UDPSetOptionCommand
 UDPSetOptionCommand ()
 
 UDPSetOptionCommand (const UDPSetOptionCommand &other)
 
virtual ~UDPSetOptionCommand ()
 
UDPSetOptionCommandoperator= (const UDPSetOptionCommand &other)
 
- 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 UDPSetTypeOfServiceCommand &)
 
- Protected Member Functions inherited from inet::UDPSetOptionCommand
bool operator== (const UDPSetOptionCommand &)
 
- Protected Member Functions inherited from inet::UDPControlInfo
bool operator== (const UDPControlInfo &)
 

Protected Attributes

char tos
 
- Protected Attributes inherited from inet::UDPControlInfo
int sockId
 

Private Member Functions

void copy (const UDPSetTypeOfServiceCommand &other)
 

Detailed Description

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

//
// Control info for setting the Type of Service (IPv4) or Traffic Class (IPv6)
// header field on outgoing IPv4/IPv6 packets sent from an UDP socket.
// This is an 8-bit field, the lowest 6 bits are the DSCP (DiffServ Code Point)
// and the highest 2 bits are the ECN (Explicit Congestion Notification).
// 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 UDPSetTypeOfServiceCommand extends UDPSetOptionCommand
{
    char tos;  // ToS byte for IPv4/IPv6
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::UDPSetOptionCommand.

virtual char inet::UDPSetTypeOfServiceCommand::getTos ( ) const
virtual
UDPSetTypeOfServiceCommand& inet::UDPSetTypeOfServiceCommand::operator= ( const UDPSetTypeOfServiceCommand other)
bool inet::UDPSetTypeOfServiceCommand::operator== ( const UDPSetTypeOfServiceCommand )
protected
virtual void inet::UDPSetTypeOfServiceCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UDPSetOptionCommand.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::UDPSetOptionCommand.

Referenced by inet::doParsimUnpacking().

virtual void inet::UDPSetTypeOfServiceCommand::setTos ( char  tos)
virtual

Member Data Documentation

char inet::UDPSetTypeOfServiceCommand::tos
protected

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