Realistic 3D camera system
3D camera system components
Public Member Functions | List of all members
http::server4::server Class Reference

The top-level coroutine of the HTTP server. More...

#include <server.hpp>

Inheritance diagram for http::server4::server:
asio::coroutine

Public Member Functions

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

Detailed Description

The top-level coroutine of the HTTP server.

Definition at line 28 of file server.hpp.

Constructor & Destructor Documentation

server::server ( asio::io_service io_service,
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.

Definition at line 18 of file server.cpp.

Member Function Documentation

void server::operator() ( asio::error_code  ec = asio::error_code(),
std::size_t  length = 0 
)

Perform work associated with the server.

Definition at line 31 of file server.cpp.


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