package tcpip

  1. Overview
  2. Docs
type error = Tcpv4.error
type write_error = Tcpv4.write_error
type buffer = Cstruct.t
type ip = Ipv4.t
type ipaddr = Ipaddr.V4.t
type ipinput = direct_ipv4_input
type flow = Tcpv4.flow
type 'a io = 'a Lwt.t
type t = Tcpv4.t
val disconnect : t -> unit io
val pp_error : error Fmt.t
val pp_write_error : write_error Fmt.t
val read : flow -> (buffer Mirage_flow.or_eof, error) Pervasives.result io
val write : flow -> buffer -> (unit, write_error) Pervasives.result io
val writev : flow -> buffer list -> (unit, write_error) Pervasives.result io
val close : flow -> unit io
type callback = flow -> unit io
val dst : flow -> ipaddr * int
val write_nodelay : flow -> buffer -> (unit, write_error) Pervasives.result io
val writev_nodelay : flow -> buffer list -> (unit, write_error) Pervasives.result io
val create_connection : t -> (ipaddr * int) -> (flow, error) Pervasives.result io
val input : t -> listeners:(int -> callback option) -> ipinput
OCaml

Innovation. Community. Security.