From 5dacf6d6d24eab71994e02b6b3c4fc6f6e309958 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Fri, 29 Sep 2023 00:55:29 +1300 Subject: feat: IPC works kinda Still quite buggy, but first version --- IPC.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 IPC.h (limited to 'IPC.h') diff --git a/IPC.h b/IPC.h new file mode 100644 index 0000000..9e497de --- /dev/null +++ b/IPC.h @@ -0,0 +1,25 @@ +#pragma once + +#include +#include + +#include "commands.h" +#include "config.h" +#include "util.h" + +class IPCModule +{ +public: + IPCModule(CommandsModule& commandsModule, Config& cfg, Globals& globals); + void doListen(); + void quitIPC(); + int getFD(); +private: + CommandsModule& commandsModule; + Config& cfg; + Globals& globals; + int sockfd; + int len; + bool first = true; + sockaddr_un address; +}; -- cgit v1.2.3