summaryrefslogtreecommitdiff
path: root/daemon/src/daemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/src/daemon.cpp')
-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();
+}