28 lines
561 B
C++
28 lines
561 B
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2016, Edouard DUPIN, all right reserved
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#include <jus/GateWayClient.h>
|
|
|
|
jus::GateWayClient::GateWayClient() {
|
|
|
|
}
|
|
|
|
jus::GateWayClient::~GateWayClient() {
|
|
|
|
}
|
|
|
|
void jus::GateWayClient::start(const std::string& _ip, uint16_t _port) {
|
|
m_interfaceClient.propertyIp.set(_ip);
|
|
m_interfaceClient.propertyPort.set(_port);
|
|
m_interfaceClient.propertyServer.set(true);
|
|
m_interfaceClient.connect();
|
|
}
|
|
|
|
void jus::GateWayClient::stop() {
|
|
m_interfaceClient.disconnect();
|
|
}
|
|
|