13 static int rpc_server(Arguments &arguments)
15 const std::string_view endpoint_option = arguments.get_string_option
22 const int log_level = arguments.get_option<
int>(
"log_level",
"level", 100);
24 const std::string_view file = arguments.get_next(
"<file.joedb>");
26 if (arguments.missing())
28 arguments.print_help(std::cerr);
32 const std::string endpoint_path = endpoint_option.empty()
33 ? std::string(file) +
".rpc.sock"
34 : std::string(endpoint_option);
36 Stream_Logger logger(std::cerr);
48 std::string(endpoint_path),
59int main(
int argc,
char **argv)
Shortcut to directly build a Client from a file name.
A collection of procedures to be used by joedb::rpc::Server.
A collection of procedures that will be executed in the rpc server.
int main_wrapper(int(*main)(Arguments &), int argc, char **argv)
Process command-line arguments and catch exceptions from main.
const auto & get_signatures()
Get the list of procedure signatures. Used by RPC client and server.