]> git.sesse.net Git - cubemap/blobdiff - server.h
Support HTTP/1.1 persistent connections (not that useful yet).
[cubemap] / server.h
index 68e72c4d543165e938a3e63810395727629c85ae..6007626dd57d5e14953b4f9b905e94fbc08d74c9 100644 (file)
--- a/server.h
+++ b/server.h
@@ -162,6 +162,11 @@ private:
        // Listen for a different set of epoll events.
        void change_epoll_events(Client *client, uint32_t events);
 
+       // If we're supposed to listen for more requests (persistent HTTP connections),
+       // puts the client back into READING_REQUEST, changes its epoll flags and returns
+       // true.
+       bool more_requests(Client *client);
+
        // Parse the HTTP request. Returns a HTTP status code (200/204/400/404).
        int parse_request(Client *client);