package tcpip

  1. Overview
  2. Docs
type ipaddr = Ipaddr.V6.t
type ipinput = unit Lwt.t
type callback = src:ipaddr -> dst:ipaddr -> src_port:int -> Cstruct.t -> unit Lwt.t
type t = {
  1. interface : Unix.inet_addr;
  2. listen_fds : (Unix.inet_addr * int, Lwt_unix.file_descr) Hashtbl.t;
}
val get_udpv6_listening_fd : t -> int -> Lwt_unix.file_descr Lwt.t
type error = [
  1. | `Sendto_failed
]
val pp_error : Format.formatter -> [< `Sendto_failed ] -> unit
val connect : Ipaddr.V6.Prefix.t option -> t Lwt.t
val disconnect : 'a -> unit Lwt.t
val input : listeners:'a -> 'b -> unit Lwt.t
val write : ?src:'a -> ?src_port:int -> ?ttl:'b -> dst:Ipaddr.V6.t -> dst_port:int -> t -> Cstruct.t -> (unit, [> `Sendto_failed ]) result Lwt.t
OCaml

Innovation. Community. Security.