X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fserver.h;h=7536362176f822909ac5278de8cce0a324b4e473;hb=2ced7606eb9090cdddd89e0481c441403d367bb2;hp=ea1213483774799f69c2cc60bd8f3f2c25dc39b6;hpb=b06cf07513fdd85e249398ebfce500fbf3dfb6a7;p=libs%2Fnet.git diff --git a/source/server.h b/source/server.h index ea12134..7536362 100644 --- a/source/server.h +++ b/source/server.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmsphttp -Copyright © 2008 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #ifndef MSP_HTTP_SERVER_H_ #define MSP_HTTP_SERVER_H_ @@ -29,6 +22,8 @@ private: RefPtr sock; std::string in_buf; Request *request; + Response *response; + bool async; bool stale; Client(RefPtr); @@ -41,11 +36,15 @@ private: public: Server(unsigned); + unsigned get_port() const; void use_event_dispatcher(IO::EventDispatcher *); + void delay_response(Response &); + void submit_response(Response &); private: void data_available(); void client_data_available(Client &); void client_end_of_file(Client &); + Client &get_client_by_response(Response &); }; } // namespace Http