package nbd

  1. Overview
  2. Docs

Module Protocol.OptionResponseHeaderSource

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.

Sourcetype 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
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval sizeof : int
Sourceval to_string : t -> string
Sourceval unmarshal : Cstruct.t -> (t, exn) result
Sourceval marshal : Cstruct.t -> t -> unit
OCaml

Innovation. Community. Security.