package tcpip

  1. Overview
  2. Docs
type error = Udpv4.error
val pp_error : error Fmt.t
type buffer = Cstruct.t
type ip = Ipv4.t
type ipaddr = Ipaddr.V4.t
type ipinput = direct_ipv4_input
type 'a io = 'a Lwt.t
type t = Udpv4.t
val disconnect : t -> unit io
type callback = src:ipaddr -> dst:ipaddr -> src_port:int -> buffer -> unit io
val input : listeners:(dst_port:int -> callback option) -> t -> ipinput
val write : ?src_port:int -> dst:ipaddr -> dst_port:int -> t -> buffer -> (unit, error) Pervasives.result io
OCaml

Innovation. Community. Security.