Sourceval any_v6 : Unix.inet_addr Sourceval set_switched_off : t -> unit Lwt.t -> unit Sourceval ignore_canceled : exn -> unit Lwt.t Sourceval get_udpv4v6_listening_fd :
?preserve:bool ->
?v4_or_v6:[< `Both | `V4 | `V6 Both ] ->
t ->
int ->
(bool * Lwt_unix.file_descr list) Lwt.t Sourcetype error = [ | `Sendto_failed| `Different_ip_version
] Sourceval connect :
ipv4_only:bool ->
ipv6_only:bool ->
Ipaddr.V4.Prefix.t ->
Ipaddr.V6.Prefix.t option ->
t Lwt.t Sourceval disconnect : t -> unit Lwt.t Sourceval write :
?src:'a ->
?src_port:int ->
?ttl:'b ->
dst:Ipaddr.t ->
dst_port:int ->
t ->
Cstruct.t ->
(unit, [> `Different_ip_version | `Sendto_failed ]) result Lwt.t Sourceval unlisten : t -> port:int -> unit Sourceval listen :
t ->
port:int ->
(src:Ipaddr.t ->
dst:('a, Ipaddr.V6.t) Ipaddr.v4v6 ->
src_port:int ->
Cstruct.t ->
unit Lwt.t) ->
unit