package nbd

  1. Overview
  2. Docs
type transport
type id
type request_hdr
type request_body
type response_hdr
type response_body
val recv_hdr : transport -> (id option * response_hdr) Lwt.t
val recv_body : transport -> request_hdr -> response_hdr -> response_body -> [ `Ok of unit | `Error of Protocol.Error.t ] Lwt.t
val send_one : transport -> request_hdr -> request_body -> unit Lwt.t
val id_of_request : request_hdr -> id
val handle_unrequested_packet : transport -> response_hdr -> unit Lwt.t
OCaml

Innovation. Community. Security.