The top-level class of the HTTP server. More...
#include <server.h>

Public Member Functions | |
| void | run () |
| Run the server's io_service loop. | |
| server (const ServerConfiguration &server_conf, std::size_t thread_pool_size) | |
| void | stop () |
| Stop the server. | |
Private Member Functions | |
| void | handle_accept (const boost::system::error_code &e) |
| Handle completion of an asynchronous accept operation. | |
Private Attributes | |
| boost::asio::ip::tcp::acceptor | acceptor_ |
| Acceptor used to listen for incoming connections. | |
| EncoderManager | encoder_manager_ |
| boost::asio::io_service | io_service_ |
| The io_service used to perform asynchronous operations. | |
| connection_ptr | new_connection_ |
| The next connection to be accepted. | |
| const ServerConfiguration & | server_conf_ |
| std::size_t | thread_pool_size_ |
| The number of threads that will call io_service::run(). | |
| ros_http_video_streamer::server::server | ( | const ServerConfiguration & | server_conf, |
| std::size_t | thread_pool_size | ||
| ) | [explicit] |
Construct the server to listen on the specified TCP address and port, and serve up files from the given directory.
Definition at line 23 of file server.cpp.
| void ros_http_video_streamer::server::handle_accept | ( | const boost::system::error_code & | e | ) | [private] |
Handle completion of an asynchronous accept operation.
Definition at line 65 of file server.cpp.
| void ros_http_video_streamer::server::run | ( | ) |
Run the server's io_service loop.
Definition at line 44 of file server.cpp.
Stop the server.
Definition at line 60 of file server.cpp.
boost::asio::ip::tcp::acceptor ros_http_video_streamer::server::acceptor_ [private] |
boost::asio::io_service ros_http_video_streamer::server::io_service_ [private] |
const ServerConfiguration& ros_http_video_streamer::server::server_conf_ [private] |
std::size_t ros_http_video_streamer::server::thread_pool_size_ [private] |