diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/HttpServerCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/HttpServerCommand.h')
| -rw-r--r-- | src/HttpServerCommand.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/HttpServerCommand.h b/src/HttpServerCommand.h index e8bf4cd0..aa47f943 100644 --- a/src/HttpServerCommand.h +++ b/src/HttpServerCommand.h @@ -36,7 +36,9 @@ #define D_HTTP_SERVER_COMMAND_H #include "Command.h" -#include "SharedHandle.h" + +#include <memory> + #include "TimerA2.h" namespace aria2 { @@ -48,8 +50,8 @@ class HttpServer; class HttpServerCommand : public Command { private: DownloadEngine* e_; - SharedHandle<SocketCore> socket_; - SharedHandle<HttpServer> httpServer_; + std::shared_ptr<SocketCore> socket_; + std::shared_ptr<HttpServer> httpServer_; Timer timeoutTimer_; bool writeCheck_; @@ -57,13 +59,13 @@ private: void updateWriteCheck(); public: HttpServerCommand(cuid_t cuid, DownloadEngine* e, - const SharedHandle<SocketCore>& socket, + const std::shared_ptr<SocketCore>& socket, bool secure); HttpServerCommand(cuid_t cuid, - const SharedHandle<HttpServer>& httpServer, + const std::shared_ptr<HttpServer>& httpServer, DownloadEngine* e, - const SharedHandle<SocketCore>& socket); + const std::shared_ptr<SocketCore>& socket); virtual ~HttpServerCommand(); |
