2016-05-12 22:45:40 +02:00
|
|
|
/** @file
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2016, Edouard DUPIN, all right reserved
|
|
|
|
* @license APACHE v2.0 (see license file)
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <jus/TcpString.h>
|
|
|
|
#include <ememory/memory.h>
|
|
|
|
#include <esignal/Signal.h>
|
|
|
|
|
|
|
|
namespace jus {
|
|
|
|
class GateWayClient {
|
|
|
|
public:
|
|
|
|
jus::TcpString m_interfaceClient;
|
|
|
|
esignal::Signal<bool> signalIsConnected;
|
2016-05-17 22:14:02 +02:00
|
|
|
esignal::Connection m_dataCallback;
|
2016-05-12 22:45:40 +02:00
|
|
|
public:
|
|
|
|
GateWayClient();
|
|
|
|
virtual ~GateWayClient();
|
|
|
|
void start(const std::string& _ip, uint16_t _port);
|
|
|
|
void stop();
|
2016-05-17 22:14:02 +02:00
|
|
|
void onClientData(const std::string& _value);
|
2016-05-12 22:45:40 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|