X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fserver.h;h=dd8b2c6c88589bd4b453b9fc48c7275fee277b9c;hb=9d41b029e940bacf17a3c8d7cc06162f0a41b70a;hp=e6de22781d17077a8e26a66925231780de4c518d;hpb=3ab65d35cfd696002e09768a38f98e6a2e1ade81;p=libs%2Fnet.git diff --git a/source/http/server.h b/source/http/server.h index e6de227..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,16 +19,15 @@ public: private: struct Client { - RefPtr sock; + std::unique_ptr sock; std::string in_buf; - Request *request = nullptr; - Response *response = nullptr; + std::unique_ptr request; + std::unique_ptr response; bool keepalive = false; bool async = false; bool stale = false; - Client(RefPtr); - ~Client(); + Client(std::unique_ptr); }; Net::StreamServerSocket sock;