package tcpip

  1. Overview
  2. Docs
type error = [
  1. | Mirage_protocols.Tcp.error
  2. | `Exn of exn
]
val pp_error : Format.formatter -> [< `Exn of exn | `Refused | `Timeout ] -> unit
val disconnect : 'a -> unit Lwt.t
val read : Lwt_unix.file_descr -> ([> `Data of Cstruct.t | `Eof ], [> `Exn of exn ]) Result.result Lwt.t
val write : Lwt_unix.file_descr -> Cstruct.t -> (unit, [> `Closed ]) Result.result Lwt.t
val writev : Lwt_unix.file_descr -> Cstruct.t list -> (unit, [> `Closed ]) Result.result Lwt.t
val write_nodelay : Lwt_unix.file_descr -> Cstruct.t -> (unit, [> `Closed ]) Result.result Lwt.t
val writev_nodelay : Lwt_unix.file_descr -> Cstruct.t list -> (unit, [> `Closed ]) Result.result Lwt.t
val close : Lwt_unix.file_descr -> unit Lwt.t
type listener = {
  1. process : Lwt_unix.file_descr -> unit Lwt.t;
  2. keepalive : Mirage_protocols.Keepalive.t option;
}
val input : 'a -> listeners:'b -> 'c Lwt.t
OCaml

Innovation. Community. Security.