11 #ifndef HTTP_CONNECTION_HPP 12 #define HTTP_CONNECTION_HPP 25 class connection_manager;
29 :
public std::enable_shared_from_this<connection>
37 connection_manager& manager, request_handler& handler);
56 connection_manager& connection_manager_;
59 request_handler& request_handler_;
62 std::array<char, 8192> buffer_;
68 request_parser request_parser_;
79 #endif // HTTP_CONNECTION_HPP connection & operator=(const connection &)=delete
Provides stream-oriented socket functionality.
connection(asio::io_service &io_service, connection_manager &manager, request_handler &handler)
Construct a connection with the given io_service.
void stop()
Stop all asynchronous operations associated with the connection.
asio::ip::tcp::socket & socket()
Get the socket associated with the connection.
boost::shared_ptr< connection > connection_ptr
void start()
Start the first asynchronous operation for the connection.