package nbd

  1. Overview
  2. Docs

The server sends an initial greeting when the connectino is opened. It can be of two main types: the original V1 and a 'newstyle' V2.

type t = [
  1. | `V1
  2. | `V2
]
val sexp_of_t : t -> Sexplib0.Sexp.t
val t_of_sexp : Sexplib0.Sexp.t -> t
val __t_of_sexp__ : Sexplib0.Sexp.t -> t
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> (t, exn) Stdlib.result
OCaml

Innovation. Community. Security.