package nbd

  1. Overview
  2. Docs

The server sends a response to every option request sent by the client (except ExportName which is followed by a DiskInfo. This is the header of the response.

type t = {
  1. request_type : Option.t;
    (*

    The option type requested

    *)
  2. response_type : OptionResponse.t;
    (*

    The response code

    *)
  3. length : int32;
    (*

    The length of the payload associated with the response

    *)
}

The header of the response sent by the server in response to the client requesting an option.

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

Innovation. Community. Security.