Dev Essential  1.6.3
Loading...
Searching...
No Matches
http_rpc_server.h
Go to the documentation of this file.
1
14
15#ifndef PKG_RPC_HTTP_RPC_PROTOCOL_H_INCLUDED
16#define PKG_RPC_HTTP_RPC_PROTOCOL_H_INCLUDED
17
20
21namespace rpc {
22
23namespace http {
24
26namespace detail {
27
31class cRPCServer : private cRPCObjectsRegistry, public cThreadedHttpServer {
32public:
37 cRPCServer(const char* strContentType);
38
42 virtual a_util::result::Result RegisterRPCObject(const char* strName, IRPCObject* pObject);
43
47 virtual a_util::result::Result UnregisterRPCObject(const char* strName);
48
49protected:
50 bool HandleRequest(const std::string& strName,
51 const std::string& strRequest,
52 std::string& strResponse,
53 std::string& strContentType);
54
55private:
56 std::string m_strContentType;
57};
58
59} // namespace detail
61
62} // namespace http
63} // namespace rpc
64
65#endif // PKG_RPC_HTTP_RPC_PROTOCOL_H_INCLUDED
Definition result_type_decl.h:34
Definition rpc_server.h:47
Definition rpc_object_registry.h:29
definition of the http namespace
Definition http_rpc_server.h:23
definition of the rpc namespace
Definition json_rpc_impl.h:20