package nbd

  1. Overview
  2. Docs

After the negotation phase, clients send I/O requests to the server.

type t = {
  1. ty : Command.t;
    (*

    The command type

    *)
  2. handle : int64;
    (*

    A unique handle used to match requests with responses.

    *)
  3. from : int64;
    (*

    The start of the data region

    *)
  4. len : int32;
    (*

    The length of the data region

    *)
}

An I/O request sent by the client to the server.

include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val to_string : t -> string
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> [ `Ok of t | `Error of exn ]
OCaml

Innovation. Community. Security.