UDPBindCommand

Namespace inet

UDPBindCommand

class

Control info for binding an UDP socket. To create and bind a socket, send a message to the UDP module with kind=UDP_C_BIND and an UDPBindCommand attached.

Both the address and the port may be left unset. If the port is unset, UDP will assign an ephemeral port.

See also: UDPCommandCode

Extends

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

Fields

Name Type Description
localAddr L3Address
localPort int

Source code

//
// Control info for binding an UDP socket. To create and bind a socket,
// send a message to the ~UDP module with kind=UDP_C_BIND and an
// ~UDPBindCommand attached.
//
// Both the address and the port may be left unset. If the port is
// unset, ~UDP will assign an ephemeral port.
//
// @see ~UDPCommandCode
//
class UDPBindCommand extends UDPControlInfo
{
    L3Address localAddr;
    int localPort = -1;
}

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