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 Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val to_string : t -> string
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> (t, exn) Stdlib.result