Bredbandskollen CLI  1.2
Asynchronous network task engine
Public Member Functions | List of all members
SynchronousClient Class Referenceabstract

Client that only exists (or, rather, executes code) from within the bridge. More...

#include <synchronousbridge.h>

Public Member Functions

virtual void initialMsgToAgent (std::deque< std::string > &return_msgs)
 Send initial messages to the agent. More...
 
virtual void newEventFromAgent (std::deque< std::string > &return_msgs, const std::string &msg)=0
 Retrieve a new message from the agent. More...
 

Detailed Description

Client that only exists (or, rather, executes code) from within the bridge.

This way, it's trivial to create a non-interactive interface to the agent.

Shall be used with a SynchronousBridge.

Member Function Documentation

◆ initialMsgToAgent()

void SynchronousClient::initialMsgToAgent ( std::deque< std::string > &  return_msgs)
virtual

Send initial messages to the agent.

Override this to push messages onto the queue.

◆ newEventFromAgent()

virtual void SynchronousClient::newEventFromAgent ( std::deque< std::string > &  return_msgs,
const std::string &  msg 
)
pure virtual

Retrieve a new message from the agent.

The client will only execute code from within its implementation of this method.

The client must push any return messages onto return_msgs.


The documentation for this class was generated from the following files: