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

The top-level coroutine of the HTTP server.

#include <server.hpp>

Inherits mace::rpc::http::coroutine.

List of all members.

Public Member Functions

 server (const std::string &address, const std::string &port, boost::function< void(const request &, reply &)> request_handler)
void operator() (boost::system::error_code ec=boost::system::error_code(), std::size_t length=0)
 Perform work associated with the server.

Detailed Description

Definition at line 28 of file server.hpp.


Constructor & Destructor Documentation

mace::rpc::http::server::server ( const std::string &  address,
const std::string &  port,
boost::function< void(const request &, reply &)>  request_handler 
) [explicit]

Construct the server to listen on the specified TCP address and port, and serve up files from the given directory.


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