UdpSetReuseAddressCommand

Namespace inet

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.

See also: UdpCommandCode

Extends

Name Type Description
UdpSetOptionCommand (unknown -- not in documented files)

Fields

Name Type Description
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/UdpControlInfo.msg