Class UDPSetReuseAddressCommand

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

C++ definition

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

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends:

Name Type Description
UDPSetOptionCommand class

Base class for UDP socket option control info classes.

Fields:

Name Type Description
reuseAddress bool
sockId int

must uniquely identify the socket in the UDP module

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
{
    bool reuseAddress;
}