Sourceval any_v6 : Unix.inet_addr Sourceval set_switched_off : t -> unit Lwt.t -> unit Sourceval ignore_canceled : exn -> unit 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:??? ->
?src_port:??? ->
?ttl:??? ->
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