8 #include <zeroeq/receiver.h> 62 ZEROEQ_API
explicit Client(
const std::string& session);
134 ZEROEQ_API
bool request(
const uint128_t& request,
const void* data,
138 ZEROEQ_API
const std::string&
getSession()
const;
142 std::unique_ptr<Impl> _impl;
145 void addSockets(std::vector<detail::Socket>& entries)
final;
146 bool process(detail::Socket& socket)
final;
148 void addConnection(
const std::string& uri)
final;
Client()
Create a default client.
const std::string & getSession() const
~Client()
Destroy this client.
Requests a remote procedure call on a Server.
std::vector< URI > URIs
A vector of URIs.
Base class for entities receiving data.
Publish-subscribe and request-reply.
std::function< void(const uint128_t &, const void *, size_t)> ReplyFunc
Callback for the reply of a Client::request() (reply ID, reply data).
bool request(const servus::Serializable &request, const ReplyFunc &func)
Request the execution of the given data on a connected Server.