X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fserver.h;h=dd8b2c6c88589bd4b453b9fc48c7275fee277b9c;hb=ede42d5bb352841e2e425972e12b8ef31ddf2123;hp=4835de039c87b46781499a52e54cb901782b5188;hpb=bc3d93e11d501f12e25ad05d5eb2dea77f0fa0ec;p=libs%2Fnet.git diff --git a/source/http/server.h b/source/http/server.h index 4835de0..dd8b2c6 100644 --- a/source/http/server.h +++ b/source/http/server.h @@ -1,7 +1,6 @@ #ifndef MSP_HTTP_SERVER_H_ #define MSP_HTTP_SERVER_H_ -#include #include #include #include @@ -20,22 +19,21 @@ public: private: struct Client { - RefPtr sock; + std::unique_ptr sock; std::string in_buf; - Request *request; - Response *response; - bool keepalive; - bool async; - bool stale; - - Client(RefPtr); - ~Client(); + std::unique_ptr request; + std::unique_ptr response; + bool keepalive = false; + bool async = false; + bool stale = false; + + Client(std::unique_ptr); }; Net::StreamServerSocket sock; std::list clients; std::map responses; - IO::EventDispatcher *event_disp; + IO::EventDispatcher *event_disp = nullptr; public: Server();