strusRpc  0.17
Public Member Functions | List of all members
strus::RpcClientMessagingInterface Class Referenceabstract

Interface providing a mechanism for the client to send and receive messages. More...

#include <rpcClientMessagingInterface.hpp>

Public Member Functions

virtual ~RpcClientMessagingInterface ()
 Destructor. More...
 
virtual std::string sendRequest (const std::string &content)=0
 Send a message (request) and wait for reply. More...
 
virtual void sendMessage (const std::string &content)=0
 Send a message and do not wait for reply. More...
 
virtual std::string synchronize ()=0
 Get result of previous sendMessage(const std::string&) calls. More...
 
virtual void close ()=0
 Explicit close of the connection. More...
 
virtual std::string config () const =0
 Get configuration string. More...
 

Detailed Description

Interface providing a mechanism for the client to send and receive messages.

Constructor & Destructor Documentation

virtual strus::RpcClientMessagingInterface::~RpcClientMessagingInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void strus::RpcClientMessagingInterface::close ( )
pure virtual

Explicit close of the connection.

virtual std::string strus::RpcClientMessagingInterface::config ( ) const
pure virtual

Get configuration string.

virtual void strus::RpcClientMessagingInterface::sendMessage ( const std::string &  content)
pure virtual

Send a message and do not wait for reply.

Parameters
[in]contentthe content of the message to send
virtual std::string strus::RpcClientMessagingInterface::sendRequest ( const std::string &  content)
pure virtual

Send a message (request) and wait for reply.

Parameters
[in]contentthe content of the message to send
Returns
the answer of the request
virtual std::string strus::RpcClientMessagingInterface::synchronize ( )
pure virtual

Get result of previous sendMessage(const std::string&) calls.


The documentation for this class was generated from the following file: