#include <http_server.hpp>
Public Member Functions | |
http_server (const std::string &ip, uint16_t port, uint16_t threads=2) | |
template<typename InterfaceType , typename T > | |
void | add_service (const std::string &path, const boost::shared_ptr< T > &s) |
void | add_service (const std::string &path, const rpc::json::connection::ptr &c, const boost::any &s=boost::any()) |
Creates an HTTP server that will direct RPC requests to one or more services based upon the path.
Definition at line 13 of file http_server.hpp.
void mace::rpc::json::http_server::add_service | ( | const std::string & | path, |
const rpc::json::connection::ptr & | c, | ||
const boost::any & | s = boost::any() |
||
) |
Add a new service and optionally associate an object with it that must share the lifetime of the service.