X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fserver.h;h=4835de039c87b46781499a52e54cb901782b5188;hb=92e8064d9f43ca3e28ce9832cfe475034ab98704;hp=29b2b45a3d4cb95ad35a529139a64834e2e3c657;hpb=09858e5a153b0667b4885da81f6f979a0bf29c36;p=libs%2Fnet.git diff --git a/source/http/server.h b/source/http/server.h index 29b2b45..4835de0 100644 --- a/source/http/server.h +++ b/source/http/server.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace Msp { namespace Http { @@ -37,13 +38,17 @@ private: IO::EventDispatcher *event_disp; public: + Server(); Server(unsigned); ~Server(); + void listen(unsigned); unsigned get_port() const; void use_event_dispatcher(IO::EventDispatcher *); void delay_response(Response &); void submit_response(Response &); + void cancel_keepalive(Response &); + void close_connections(const Time::TimeDelta &); private: void data_available(); void client_data_available(Client &);