ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
kcmcp_server.h
Go to the documentation of this file.
1
/**
2
* @file kcmcp_server.h
3
* @brief The @c tdkc KCMCP reference server.
4
*
5
* Runs @c tdkc as a KCMCP-compliant engine (see
6
* doc/source/dev/kc-server-protocol.rst): it accepts connections on a Unix or
7
* TCP endpoint, advertises @c compile (to @c ddnnf-nnf) and @c wmc (to
8
* @c decimal) over @c dimacs-cnf input, and serves each request by building a
9
* d-DNNF through ProvSQL's in-process tree decomposition. It is a reference /
10
* conformance implementation of the protocol; ProvSQL itself keeps tree
11
* decomposition in-process rather than talking to it over a socket.
12
*/
13
#ifndef PROVSQL_KCMCP_SERVER_H
14
#define PROVSQL_KCMCP_SERVER_H
15
16
#include <string>
17
18
/**
19
* @brief Serve KCMCP on @p endpoint until terminated.
20
* @param endpoint @c "unix:/path/to.sock" or @c "host:port" (e.g.
21
* @c "127.0.0.1:9000").
22
* @return process exit code (non-zero on a setup failure).
23
*/
24
int
kcmcp_serve
(
const
std::string &endpoint);
25
26
#endif
kcmcp_serve
int kcmcp_serve(const std::string &endpoint)
Serve KCMCP on endpoint until terminated.
Definition
kcmcp_server.cpp:388
Home
·
Documentation
·
Publications
·
Contributors
·
Source
·
Cite