summaryrefslogtreecommitdiff
path: root/_tags
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-01-15 23:07:39 +0700
committerDaniil Baturin <daniil@baturin.org>2017-01-15 23:07:39 +0700
commit291a998ca375077b3c23c1e3c43a7fc206c8de4b (patch)
treef107bee0f33a747f9375a0a76932ac38b69f29c7 /_tags
parentfa6a9c8b5d8d127bbce810aa14d4468de437469f (diff)
downloadvyconf-291a998ca375077b3c23c1e3c43a7fc206c8de4b.tar.gz
vyconf-291a998ca375077b3c23c1e3c43a7fc206c8de4b.zip
Add functionality for socket communication.
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.
Diffstat (limited to '_tags')
-rw-r--r--_tags11
1 files changed, 9 insertions, 2 deletions
diff --git a/_tags b/_tags
index cdc2d08..f10f691 100644
--- a/_tags
+++ b/_tags
@@ -1,5 +1,5 @@
# OASIS_START
-# DO NOT EDIT (digest: 0757c9ec9f5d35df060616ca6806b8dd)
+# DO NOT EDIT (digest: 961843de21a9e59181cb630343a7c107)
# Ignore VCS directories, you can use the same kind of rule outside
# OASIS_START/STOP if you want to exclude directories that contains
# useless stuff for the build process
@@ -35,7 +35,6 @@ true: annot, bin_annot
<src/*.ml{,i,y}>: pkg_xml-light
# Library vyconf_pb
"src/vyconf_pb.cmxs": use_vyconf_pb
-<src/*.ml{,i,y}>: pkg_ocaml-protoc
# Library session
"src/session.cmxs": use_session
# Library vyconf_config
@@ -45,12 +44,18 @@ true: annot, bin_annot
"src/directories.cmxs": use_directories
# Library startup
"src/startup.cmxs": use_startup
+# Library message
+"src/message.cmxs": use_message
+# Library vyconf_client
+"src/vyconf_client.cmxs": use_vyconf_client
<src/*.ml{,i,y}>: pkg_lwt.log
# Executable vyconfd
<src/vyconfd.{native,byte}>: pkg_fileutils
<src/vyconfd.{native,byte}>: pkg_lwt
<src/vyconfd.{native,byte}>: pkg_lwt.ppx
<src/vyconfd.{native,byte}>: pkg_lwt.unix
+<src/vyconfd.{native,byte}>: pkg_ocaml-protoc
+<src/vyconfd.{native,byte}>: pkg_ocplib-endian
<src/vyconfd.{native,byte}>: pkg_ppx_deriving.runtime
<src/vyconfd.{native,byte}>: pkg_ppx_deriving_yojson.runtime
<src/vyconfd.{native,byte}>: pkg_toml
@@ -59,6 +64,8 @@ true: annot, bin_annot
<src/*.ml{,i,y}>: pkg_lwt
<src/*.ml{,i,y}>: pkg_lwt.ppx
<src/*.ml{,i,y}>: pkg_lwt.unix
+<src/*.ml{,i,y}>: pkg_ocaml-protoc
+<src/*.ml{,i,y}>: pkg_ocplib-endian
<src/*.ml{,i,y}>: pkg_ppx_deriving.runtime
<src/*.ml{,i,y}>: pkg_ppx_deriving_yojson.runtime
<src/*.ml{,i,y}>: pkg_toml