Struct UDPConnection
Represents a bound and possibly 'connected' UDP socket.
Properties
Name | Type | Description |
bindAddress [get]
|
string | Returns the address to which the UDP socket is bound.
|
canBroadcast [get, set]
|
bool | Determines if the socket is allowed to send to broadcast addresses.
|
fd [get]
|
int | |
localAddress [get]
|
NetworkAddress | The local/bind address of the underlying socket.
|
multicastLoopback [set]
|
bool | Set IP multicast loopback mode.
|
Methods
Name | Description |
addMembership
(multiaddr, interface_index)
|
Become a member of an IP multicast group.
|
close
()
|
Stops listening for datagrams and frees all resources.
|
connect
(host, port)
|
Locks the UDP connection to a certain peer.
|
opCast
()
|
|
recv
(buf, peer_address)
|
Receives a single packet.
|
send
(data, peer_address)
|
Sends a single packet.
|