]> git.tdb.fi Git - libs/net.git/blobdiff - source/server.h
Socket::close was removed
[libs/net.git] / source / server.h
index ea1213483774799f69c2cc60bd8f3f2c25dc39b6..7536362176f822909ac5278de8cce0a324b4e473 100644 (file)
@@ -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<Net::StreamSocket> sock;
                std::string in_buf;
                Request *request;
+               Response *response;
+               bool async;
                bool stale;
 
                Client(RefPtr<Net::StreamSocket>);
@@ -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