MACE  1.0.0
 All Classes Namespaces Files Functions Variables Enumerations Defines
Public Member Functions
mace::rpc::json::http_server Class Reference

#include <http_server.hpp>

List of all members.

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())

Detailed Description

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.


Member Function Documentation

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.


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