diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2024-12-01 19:24:09 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2024-12-01 19:24:09 +1300 |
| commit | 8dca89a1be23f0de2dd1676b95feb6b46cbdd5f2 (patch) | |
| tree | 7ebc1a5161bbe70d6ab6a0e5353a1a622240c915 /src/IPC.h | |
| parent | e162dff48c251e262f475de9261f0ecfa0f39dc4 (diff) | |
| parent | 434ec6542d0d79190c6aa7003aac91b03cad4398 (diff) | |
| download | YATwm-8dca89a1be23f0de2dd1676b95feb6b46cbdd5f2.tar.gz YATwm-8dca89a1be23f0de2dd1676b95feb6b46cbdd5f2.zip | |
Merge branch 'IPC'
Diffstat (limited to 'src/IPC.h')
| -rw-r--r-- | src/IPC.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/IPC.h b/src/IPC.h new file mode 100644 index 0000000..97716bb --- /dev/null +++ b/src/IPC.h @@ -0,0 +1,27 @@ +#pragma once + +#include <sys/socket.h> +#include <sys/un.h> + +#include "commands.h" +#include "config.h" +#include "util.h" + +class IPCModule +{ +public: + IPCModule(CommandsModule& commandsModule, Config& cfg, Globals& globals); + void init(); + void doListen(); + void quitIPC(); + int getFD(); +private: + CommandsModule& commandsModule; + Config& cfg; + Globals& globals; + int sockfd; + int len; + bool first = true; + bool ready = false; + sockaddr_un address; +}; |
