#pragma once #include #include #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; };