UdpSetTimeToLiveCommand

Namespace: inet

class UdpSetTimeToLiveCommand

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.

See also: UdpCommandCode

Inheritance diagram

Extends

Name

Type

Description

UdpSetOptionCommand

class

Base class for UDP socket option control info classes.

Fields

Name

Type

Description

optionCode

UdpSetOptionSubcode

optionCode

ttl

int

Source code

//
// 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.
//
// @see ~UdpCommandCode
//
class UdpSetTimeToLiveCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_TTL;
    int ttl;
}

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