Public Member Functions | Private Member Functions | Private Attributes
ros_http_video_streamer::server Class Reference

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

#include <server.h>

Inheritance diagram for ros_http_video_streamer::server:
Inheritance graph
[legend]

List of all members.

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 ServerConfigurationserver_conf_
std::size_t thread_pool_size_
 The number of threads that will call io_service::run().

Detailed Description

The top-level class of the HTTP server.

Definition at line 29 of file server.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.


Member Data Documentation

boost::asio::ip::tcp::acceptor ros_http_video_streamer::server::acceptor_ [private]

Acceptor used to listen for incoming connections.

Definition at line 56 of file server.h.

Definition at line 59 of file server.h.

boost::asio::io_service ros_http_video_streamer::server::io_service_ [private]

The io_service used to perform asynchronous operations.

Definition at line 53 of file server.h.

The next connection to be accepted.

Definition at line 62 of file server.h.

Definition at line 47 of file server.h.

The number of threads that will call io_service::run().

Definition at line 50 of file server.h.


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


ros_web_video
Author(s): Julius Kammer
autogenerated on Fri Aug 28 2015 12:38:36