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

Innovation. Community. Security.