ADTF  3.18.4
json_http_rpc.h
Go to the documentation of this file.
1 
15 #ifndef PKG_RPC_JSON_HTTP_H_INCLUDED
16 #define PKG_RPC_JSON_HTTP_H_INCLUDED
17 
19 
20 #include <jsonrpccpp/client/iclientconnector.h>
21 
22 namespace rpc {
23 namespace http {
24 
28 class cJSONRPCServer : public detail::cRPCServer {
29 public:
32 };
33 
38 public:
43  cJSONClientConnector(const std::string& strUrl);
61 
62 public:
69  void SendRPCMessage(const std::string& message, std::string& result) override;
70 
71 private:
72  class cImplementation;
73  cImplementation* m_pImplementation;
74 };
75 
76 } // namespace http
77 } // namespace rpc
78 
79 #endif // PKG_RPC_JSON_HTTP_H_INCLUDED
Connector that sends RPC messages via HTTP.
Definition: json_http_rpc.h:37
cJSONClientConnector(const std::string &strUrl)
Constructor.
cJSONClientConnector & operator=(cJSONClientConnector &&other)
Move assignment.
void SendRPCMessage(const std::string &message, std::string &result) override
Send an RPC message to the connected url.
cJSONClientConnector & operator=(const cJSONClientConnector &)=delete
Disable copy assignment.
cJSONClientConnector(cJSONClientConnector &&other)
Move constructor.
cJSONClientConnector(const cJSONClientConnector &)=delete
Disable copy construction.
The JSON RPC server class.
Definition: json_http_rpc.h:28
cJSONRPCServer()
CTOR, setting the content type for the RPC server to "application/json".
RPC Protocol declaration.