10 #ifndef _STRUS_RPC_CLIENT_MESSAGING_INTERFACE_HPP_INCLUDED
11 #define _STRUS_RPC_CLIENT_MESSAGING_INTERFACE_HPP_INCLUDED
28 virtual std::string
sendRequest(
const std::string& content)=0;
32 virtual void sendMessage(
const std::string& content)=0;
38 virtual void close()=0;
41 virtual std::string
config()
const=0;
virtual void sendMessage(const std::string &content)=0
Send a message and do not wait for reply.
Interface providing a mechanism for the client to send and receive messages.
Definition: rpcClientMessagingInterface.hpp:19
virtual void close()=0
Explicit close of the connection.
virtual ~RpcClientMessagingInterface()
Destructor.
Definition: rpcClientMessagingInterface.hpp:23
virtual std::string synchronize()=0
Get result of previous sendMessage(const std::string&) calls.
virtual std::string config() const =0
Get configuration string.
virtual std::string sendRequest(const std::string &content)=0
Send a message (request) and wait for reply.