Commit 966854d8 authored by djk032's avatar djk032

added wrapper for tcp control client

parent 7364d741
#include "Control.h"
using namespace CLA;
/* wrapper for tcp client */
Control::Control(std::shared_ptr<CLA::LOGGER>& logger, const string& topic, const
string& type) : m_logger(logger), m_tcp_control_client(logger, topic, type) {
m_tcp_control_client.setup_connection(); /* connection setup to server via tcp socket */
void Control::publish_control_message (const string& data) {
Control::~Control() {
#ifndef Control_H_
#define Control_H_
#include "tcp_control_client.h"
namespace CLA {
class Control {
/* wrapper for control tcp client */
CLA::tcp_control_client m_tcp_control_client;
std::shared_ptr<CLA::LOGGER> m_logger;
Control( std::shared_ptr<CLA::LOGGER>&);
Control( std::shared_ptr<CLA::LOGGER>&, const string&, const string&);
void publish_control_message(const string&);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment