Bridge using a pair of Unix domain sockets to enable communication between agent and client.
Definition: unixdomainbridge.h:12
double start() override
See Task::start.
Definition: unixdomainbridge.cpp:12
PollState msgFromConnection(SocketConnection *, const std::string &msg) override
Will be called when client has sent a message.
Definition: unixdomainbridge.cpp:38
int getClientSocket() const
Get client's socket descriptor.
Definition: unixdomainbridge.cpp:22
int getAgentSocket() const
Close in child after fork.
Definition: unixdomainbridge.cpp:28
UnixDomainBridge(Task *agent=nullptr)
Create a bridge to the given agent task.
Definition: unixdomainbridge.cpp:7
PollState connectionReady(SocketConnection *) override
See Task::connectionReady.
Definition: unixdomainbridge.cpp:34
void sendMsgToClient(const std::string &msg) override
Pass message to the client.
Definition: unixdomainbridge.cpp:18