UDPConnectCommand

Namespace inet

UDPConnectCommand

class

Control info for connecting an UDP socket. To connect a socket, send a message to the UDP module with kind=UDP_C_CONNECT and an UDPConnectCommand attached. If the socket does not exist, it will be created.

Both the address and the port must be filled in.

See also: UDPCommandCode

Extends

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

Fields

Name Type Description
remoteAddr L3Address
remotePort int

Source code

//
// Control info for connecting an UDP socket. To connect a socket,
// send a message to the ~UDP module with kind=UDP_C_CONNECT and an
// ~UDPConnectCommand attached. If the socket does not exist,
// it will be created.
//
// Both the address and the port must be filled in.
//
// @see ~UDPCommandCode
//
class UDPConnectCommand extends UDPControlInfo
{
    L3Address remoteAddr;
    int remotePort = -1;
}


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