mirror of
https://github.com/LANCommander/BadCompany2.MasterServer.git
synced 2026-08-30 10:23:02 -04:00
22 lines
532 B
C++
22 lines
532 B
C++
#include "../main.h"
|
|
#include "Http/HttpConnection.h"
|
|
#include "Http/RequestHandler.h"
|
|
|
|
class HttpServer : private noncopyable
|
|
{
|
|
public:
|
|
HttpServer(asio::io_service& io_service, bool updater_respond);
|
|
void handle_stop();
|
|
|
|
private:
|
|
tcp::acceptor acceptor_;
|
|
bool updater_respond;
|
|
|
|
/// The next connection to be accepted.
|
|
http_connection_ptr new_connection_;
|
|
/// The handler for all incoming requests.
|
|
RequestHandler request_handler_;
|
|
|
|
void start_accept();
|
|
void handle_accept(const system::error_code& error);
|
|
};
|