Client.hpp
Go to the documentation of this file.
34 //Client(const std::string& _address, const std::string& _clientName, const std::string& _clientTocken);
79 bool connect(const std::string& _address, const std::string& _clientName, const std::string& _clientTocken);
121 zeus::FutureBase callAction(const std::string& _functionName, _ARGS&&... _args, zeus::FutureData::ObserverFinish _callback) {
std::function< bool(zeus::FutureBase)> ObserverFinish
Define an Observer: function pointer.
Definition: FutureData.hpp:21
Definition: ServiceRemote.hpp:22
zeus::FutureBase callAction(const std::string &_functionName, _ARGS &&... _args, zeus::FutureData::ObserverFinish _callback)
Definition: WebServer.hpp:258
bool connectTo(const std::string &_address)
Connetc to a remote extern server.
eproperty::Value< uint16_t > propertyPort
Port of the WebSocket connection.
Definition: Client.hpp:24
static ememory::SharedPtr< zeus::BufferAnswer > create()
Create a shared pointer on the BufferAnswer.
Generic zeus Future interface to get data asynchronously.
Definition: FutureBase.hpp:14
zeus::FutureBase call(const std::string &_functionName, _ARGS &&... _args)
Definition: WebServer.hpp:247
void addError(const std::string &_value, const std::string &_comment)
Ann an error on the message answer.
Client()
Create a client on a specific user in a client mode with the tocken associated.
zeus::FutureBase callAction(const std::string &_functionName, _ARGS &&... _args, zeus::FutureData::ObserverFinish _callback)
Create a call on the interface gateway.
Definition: Client.hpp:121
zeus::ServiceRemote getService(const std::string &_serviceName)
Get a remote service.
bool connect(const std::string &_address)
Create a client on a specific user in an ANONIMOUS way.
virtual ~Client()
zeus::FutureBase call(const std::string &_functionName, _ARGS &&... _args)
Create a call on the interface gateway.
Definition: Client.hpp:105
eproperty::Value< std::string > propertyIp
Ip of WebSocket TCP connection.
Definition: Client.hpp:23