strusRpc  0.17
rpcClientMessagingInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_RPC_CLIENT_MESSAGING_INTERFACE_HPP_INCLUDED
11 #define _STRUS_RPC_CLIENT_MESSAGING_INTERFACE_HPP_INCLUDED
12 #include <string>
13 
15 namespace strus
16 {
17 
20 {
21 public:
24 
28  virtual std::string sendRequest( const std::string& content)=0;
29 
32  virtual void sendMessage( const std::string& content)=0;
33 
35  virtual std::string synchronize()=0;
36 
38  virtual void close()=0;
39 
41  virtual std::string config() const=0;
42 };
43 
44 }//namespace
45 #endif
46 
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.