UdpSetReuseAddressCommand

Namespace: inet

class UdpSetReuseAddressCommand

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.

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

reuseAddress

bool

Source code

//
// 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.
//
// @see ~UdpCommandCode
//
class UdpSetReuseAddressCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_REUSEADDR;
    bool reuseAddress;
}

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