package nbd

  1. Overview
  2. Docs
type t
type size = int64
type channel = {
  1. read : Cstruct.t -> unit Lwt.t;
  2. write : Cstruct.t -> unit Lwt.t;
}
val open_channel : string -> int -> channel Lwt.t
val negotiate : channel -> (t * size * Nbd.Flag.t list) Lwt.t
val write : t -> Cstruct.t -> int64 -> unit Lwt.t
val read : t -> int64 -> int32 -> Cstruct.t Lwt.t
OCaml

Innovation. Community. Security.