1#ifndef COMMUNICATION_GROUP_CLIENT_H
2#define COMMUNICATION_GROUP_CLIENT_H
17 using RequestHandler = std::function<void(T)>;
22 template <
typename T,
typename R>
26 RequestHandler<T> mRequestHandler;
47 std::future<void>
Response(
const R& responseMsg)
const;
Communication group client proxy.
Definition: communication_group_client.h:24
void Message(const T &msg)
Receive a request message from the server.
Definition: communication_group_client.h:39
std::future< void > Response(const R &responseMsg) const
Send a response message to the server.
CommunicationGroupClient(RequestHandler< T > requestHandler)
Constructor.
Definition: communication_group_client.h:31