UDP.Connected
Connected UDP sockets.
This module requires libuv 1.27.0 or higher.
Feature check: Luv.Require.(has udp_connect)
val connect : t -> Sockaddr.t -> (unit, Error.t) Stdlib.result
Assigns a peer address to the given socket.
Binds uv_udp_connect
.
Removes the peer address assigned to the given socket.
Binds uv_udp_connect
with NULL
argument.
val getpeername : t -> (Sockaddr.t, Error.t) Stdlib.result
Retrieves the peer address assigned to the given socket.
Binds uv_udp_getpeername
.
Like Luv.UDP.send
, but the remote address used is the peer address assigned to the socket.
Binds uv_udp_send
.
Like Luv.UDP.try_send
, but the remote address used is the peer address assigned to the socket.
Binds uv_udp_try_send
.