summaryrefslogtreecommitdiff
path: root/daemon/src
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-14 22:51:43 +0200
committerAki <please@ignore.pl>2021-10-14 22:51:43 +0200
commit0dd0ba272f247ca6e9b7948b648e42ff544c71ac (patch)
tree81d291a87456a6909d311f4b31ce6f56c5490dac /daemon/src
downloadhwd-0dd0ba272f247ca6e9b7948b648e42ff544c71ac.zip
hwd-0dd0ba272f247ca6e9b7948b648e42ff544c71ac.tar.gz
hwd-0dd0ba272f247ca6e9b7948b648e42ff544c71ac.tar.bz2
Created stub daemon with a communication library
Diffstat (limited to 'daemon/src')
-rw-r--r--daemon/src/daemon.cpp13
1 files changed, 13 insertions, 0 deletions
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 <rpc/server.h>
+#include <rpc/this_server.h>
+
+#include <hwd/internal.h>
+
+int main(int, char **)
+{
+ rpc::server server(hwd::internal::default_port);
+ server.bind("stop_server", []{
+ rpc::this_server().stop();
+ });
+ server.run();
+}