summaryrefslogtreecommitdiff
path: root/src/message.ml
AgeCommit message (Collapse)Author
2017-01-15Add functionality for socket communication.Daniil Baturin
The Message module contains read and write functions that take care of the wire protocol, which sends a 4 byte length header before every message. They take a bytes buffer and don't care about its contents. The Vyconf_client module has high level functions for interfacing with vyconfd. Functions for creating a socket and creating a server loop are in Startup. The rest is, for now at least, right in vyconfd. Notes: Message.read/write probably should be wrapped in Lwt_io.atomic We need to find out if it's safe to reuse Pbrt.Encoder.t or we really should create it every time.
2017-01-07Remove the old message library that will be replaced with the Protobuf one.Daniil Baturin
2016-12-08Fix build for ocaml 4.03Daniil Baturin
Yojson now uses the Result.result type for its decoding functions instead of polymorphic variants.
2016-12-07Initial implementation of the message decoder/encoder.Daniil Baturin
2015-09-30Add get_values method to the message decoder.Daniil Baturin
2015-09-29Add message decoder implementation.Daniil Baturin
Restrict the Message module interface to the message types and decoder function.
2015-09-28Remove the value field from message types to account for valueless nodes and ↵Daniil Baturin
the like.
2015-09-28Add types and derivers for the message decoder.Daniil Baturin