package octez-libs

  1. Overview
  2. Docs

Messages are refined into either a request or a reply. Both these types are parameterized by their protocol step. The ground type of messages (t) is enforced to be bytes, to avoid relying on the Marshalling performed by the Distributed library.

include Distributed.Message_type with type t = bytes
type t = bytes

Abstract type representing the messages that will be sent between processes.

val string_of_message : t -> string

string_of_message msg returns the string representation of msg.

type 'a step
type 'step request
type 'step reply
val request_step : 'step request -> 'step step
val of_request : 'a request -> t
val of_reply : 'a reply -> t
val to_request : 'step step -> t -> 'step request option
val to_reply : 'step step -> t -> 'step reply option
val index : t -> int
OCaml

Innovation. Community. Security.