package protocol_version_header

  1. Overview
  2. Docs
Protocol versioning

Install

Dune Dependency

Authors

Maintainers

Sources

protocol_version_header-v0.10.0.tar.gz
sha256=525ad24929342b18e6e6da2d86c5fccd0488116375772ff8b749910128e7a8d4
md5=12508328b26e641d775e9085c9c70757

Description

This library offers a lightweight way for applications protocols to version themselves. The more protocols that add themselves to [Known_protocol], the nicer error messages we will get when connecting to a service while using the wrong protocol.

Published: 30 Dec 2017

README

README.org

* Protocol_version_header - protocol aware version negotiation

Protocol_version_header is a small library that houses magic numbers for various
protocols. It exposes a =negotiate= function that is magic number aware,
returning human readable error messages when negotiation fails.

This library is used directly by =Rpc= and =Krb= so the common mistake of
mismatching clients and servers can be detected.

Dependencies (6)

  1. ocaml-migrate-parsetree >= "0.4" & < "2.0.0"
  2. jbuilder >= "1.0+beta12"
  3. ppx_jane >= "v0.10" & < "v0.11"
  4. ppx_driver >= "v0.10" & < "v0.11"
  5. core_kernel >= "v0.10" & < "v0.11"
  6. ocaml >= "4.04.1"

Dev Dependencies

None

Used by (1)

  1. async_rpc_kernel = "v0.10.0"

Conflicts

None

OCaml

Innovation. Community. Security.