UdpSetOptionCommand

Namespace: inet

class UdpSetOptionCommand

Base class for UDP socket option control info classes.

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

UdpCommandBase

class

Base class for UDP control info classes. The most convenient way to handle Udp is the UdpSocket class, which hides control info from you.

Known subclasses

Name

Type

Description

UdpBlockMulticastSourcesCommand

class

Control info for letting an UDP socket to block multicast traffic from specific sources after joining a multicast group.

UdpJoinMulticastGroupsCommand

class

Control info for letting an UDP socket join multicast groups. 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.

UdpJoinMulticastSourcesCommand

class

Control info for letting an UDP socket to join a multicast group only for the selected sources.

UdpLeaveMulticastGroupsCommand

class

Control info for letting an UDP socket leave multicast groups. 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.

UdpLeaveMulticastSourcesCommand

class

Control info for letting an UDP socket to leave a multicast group for the selected sources.

UdpSetBroadcastCommand

class

Control info for setting the Broadcast option on an UDP socket. 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.

UdpSetDscpCommand

class

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.

UdpSetMulticastInterfaceCommand

class

Control info for setting the multicast output interface for an UDP socket. 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.

UdpSetMulticastLoopCommand

class

Control info for setting the multicast loop option for an UDP socket. When the option is true, a copy of the outgoing multicast packet is delivered locally via the loopback interface. To set the option, send a message to the Udp module with kind=UDP_C_SETOPTION and an instance of this control info class attached.

UdpSetMulticastSourceFilterCommand

class

Control info for letting an UDP socket to specify the excluded/included sources for a multicast group.

UdpSetReuseAddressCommand

class

Control info for setting the ReuseAddress option on an UDP socket. When the option is true, then the socket is allowed to bind to an already bound local address. 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.

UdpSetTimeToLiveCommand

class

Control info for setting the Time To Live (a.k.a. Hop Limit) option on an UDP socket. This option will affect both multicast and unicast packets. 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.

UdpSetTosCommand

class

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.

UdpUnblockMulticastSourcesCommand

class

Control info for letting an UDP socket to permit multicast traffic from a previously blocked source.

Fields

Name

Type

Description

optionCode

UdpSetOptionSubcode

Source code

//
// Base class for UDP socket option control info classes.
//
class UdpSetOptionCommand extends UdpCommandBase
{
    UdpSetOptionSubcode optionCode = static_cast<UdpSetOptionSubcode>(-1);
}

File: src/inet/transportlayer/contract/udp/UdpCommand.msg