![]() |
0.4.3
|
|
#include <Client.h>
Public 成员函数 | |
| Client () | |
| ~Client () | |
| Client (const Client &)=delete | |
| Client & | operator= (const Client &)=delete |
| Client (Client &&)=delete | |
| Client & | operator= (Client &&)=delete |
| void | connect (const std::string &serverIp, int serverPort) |
| void | disconnect () |
| bool | isConnected () |
| template<typename T > | |
| T | createDeviceController () |
| DeviceParameterManager | createDeviceParameterManager () |
| std::string | getServerIp () |
| int | getServerPort () |
| std::string | getServerAddress () |
| int | getHeartbeatTimeout () |
| void | setHeartbeatTimeout (int heartbeatTimeout) |
| void | updateClock () |
| void | setClientEventListener (const BaseClientEventListenerPtr &listenerPtr) |
| void | destroyServer () |
静态 Public 成员函数 | |
| static void | initLog (const std::string &configurationFilePath) |
Protected 属性 | |
| ClientContextPtr | m_clientContextPtr |
| ALSON::Client::Client | ( | ) |
| ALSON::Client::~Client | ( | ) |
|
delete |
|
delete |
| void ALSON::Client::connect | ( | const std::string & | serverIp, |
| int | serverPort ) |
| void ALSON::Client::disconnect | ( | ) |
| bool ALSON::Client::isConnected | ( | ) |
|
inline |
|
inline |
| std::string ALSON::Client::getServerIp | ( | ) |
| int ALSON::Client::getServerPort | ( | ) |
| std::string ALSON::Client::getServerAddress | ( | ) |
| int ALSON::Client::getHeartbeatTimeout | ( | ) |
| void ALSON::Client::setHeartbeatTimeout | ( | int | heartbeatTimeout | ) |
设置心跳超时时间,单位是毫秒。
| heartbeatTimeout | 心跳超时时间 |
| void ALSON::Client::updateClock | ( | ) |
| void ALSON::Client::setClientEventListener | ( | const BaseClientEventListenerPtr & | listenerPtr | ) |
| void ALSON::Client::destroyServer | ( | ) |
|
static |
|
protected |