package nbd

  1. Overview
  2. Docs

Channels represent connections between clients and servers.

type channel = {
  1. read : Cstruct.t -> unit Lwt.t;
    (*

    Read a block of data from the channel

    *)
  2. write : Cstruct.t -> unit Lwt.t;
    (*

    Write a block of data to the channel

    *)
  3. close : unit -> unit Lwt.t;
    (*

    Close the channel

    *)
}

An open channel to an NBD client or server.

OCaml

Innovation. Community. Security.