ctdb-common: Add sock_client abstraction
authorAmitay Isaacs <amitay@gmail.com>
Thu, 29 Jun 2017 05:10:11 +0000 (15:10 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 1 Sep 2017 06:52:07 +0000 (08:52 +0200)
commitdcc1eaf542e279bf05c338fd03bc9307084cadc5
treed5bfe2bdf80da99005448efe57b97fe2dc4582ca
parentdfa87862fb3f2c17094bb8ac921b369c344c556d
ctdb-common: Add sock_client abstraction

This sets up boilerplate required for a client code connecting to a
server over unix domain socket.  The communication between client
and server is "request" from client to server and "reply" from
server to client.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/sock_client.c [new file with mode: 0644]
ctdb/common/sock_client.h [new file with mode: 0644]
ctdb/wscript