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
]
include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val __t_of_sexp__ : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> [ `Ok of t | `Error of exn ]
OCaml

Innovation. Community. Security.