6 #include "bridgetask.h"
17 void pushToAgent(
const std::string &msg)
24 std::string popFromAgent();
30 double start()
override;
Tasks may use a bridge to communicate with an application running outside the event loop.
Definition: bridgetask.h:43
The purpose of a task is to manage socket connections, and/or to execute timers.
Definition: task.h:39
Bridge using a thread safe queue to enable communication between agent and client.
Definition: threadbridge.h:12
double timerEvent() override
Push queued messages for the agent. Called every tick seconds.
Definition: threadbridge.cpp:17
double start() override
Initiate timer to be called after tick seconds.
Definition: threadbridge.cpp:12
void pushToAgent(const std::string &msg) std void sendMsgToClient(const std::string &msg) override
API for client to send message to the agent.
Definition: threadbridge.h:27