package mirage-dns

  1. Overview
  2. Docs
type error = private [>
  1. | Mirage_protocols.Tcp.error
]
type write_error = private [>
  1. | Mirage_protocols.Tcp.write_error
]
type buffer = buffer
type ip = ipv4
type ipaddr = ipv4addr
type ipinput
type flow
type 'a io = 'a io
type t = tcpv4
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.