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
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
UDPControlInfo | class |
Base class for UDP control info classes. The most convenient way to handle UDP is the UDPSocket class, which hides control info from you. |
Name | Type | Description |
---|---|---|
localAddr | L3Address | |
localPort | int | |
sockId | int |
must uniquely identify the socket in the UDP module |
// // 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; }