23#ifndef INTERPROCESSCOMMUNICATOR_H
24#define INTERPROCESSCOMMUNICATOR_H
79 bool communicate(
const std::vector<std::string>& args,
bool exitIfClient =
false);
93 struct sockaddr_un m_sockaddr;
An inter process communicator (server/client).
Definition interprocesscommunicator.h:43
bool communicate(const std::vector< std::string > &args, bool exitIfClient=false)
Communicates to the IPC server instance.
Events::Event< Events::ParamEventArgs< std::vector< std::string > > > & commandReceived()
Gets the event for when a command is received.
InterProcessCommunicator(const std::string &id)
Constructs an InterProcessCommunicator.
bool isServer() const
Gets whether or not this instance is an IPC server.
~InterProcessCommunicator()
Destructs an InterProcessCommunicator.
bool isClient() const
Gets whether or not this instance is an IPC client.
An event that can have handlers subscribe to it, which in turn will be called when the event is invok...
Definition event.h:49