diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-09-29 00:55:29 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-11-12 15:03:19 +1300 |
| commit | 5dacf6d6d24eab71994e02b6b3c4fc6f6e309958 (patch) | |
| tree | 204b77d98627d390eb8d6c1a50b767605221d6ec /IPC.h | |
| parent | 6b5c246a431dcaff119833724137f0716fa2a002 (diff) | |
| download | YATwm-5dacf6d6d24eab71994e02b6b3c4fc6f6e309958.tar.gz YATwm-5dacf6d6d24eab71994e02b6b3c4fc6f6e309958.zip | |
feat: IPC works kinda
Still quite buggy, but first version
Diffstat (limited to 'IPC.h')
| -rw-r--r-- | IPC.h | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#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 doListen(); + void quitIPC(); + int getFD(); +private: + CommandsModule& commandsModule; + Config& cfg; + Globals& globals; + int sockfd; + int len; + bool first = true; + sockaddr_un address; +}; |
