From 0dd0ba272f247ca6e9b7948b648e42ff544c71ac Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 14 Oct 2021 22:51:43 +0200 Subject: Created stub daemon with a communication library --- daemon/src/daemon.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 daemon/src/daemon.cpp (limited to 'daemon/src') diff --git a/daemon/src/daemon.cpp b/daemon/src/daemon.cpp new file mode 100644 index 0000000..feb6570 --- /dev/null +++ b/daemon/src/daemon.cpp @@ -0,0 +1,13 @@ +#include +#include + +#include + +int main(int, char **) +{ + rpc::server server(hwd::internal::default_port); + server.bind("stop_server", []{ + rpc::this_server().stop(); + }); + server.run(); +} -- cgit v1.1