UdpBindCommand¶
Namespace: inet
class UdpBindCommand
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
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
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. |
Fields¶
Name |
Type |
Description |
|---|---|---|
localAddr |
||
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 UdpCommandBase
{
L3Address localAddr;
int localPort = -1;
}