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.cc | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/HttpServerCommand.cc')
| -rw-r--r-- | src/HttpServerCommand.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index 848df1bf..257ab474 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -64,7 +64,7 @@ namespace aria2 { HttpServerCommand::HttpServerCommand (cuid_t cuid, DownloadEngine* e, - const SharedHandle<SocketCore>& socket, + const std::shared_ptr<SocketCore>& socket, bool secure) : Command(cuid), e_(e), @@ -90,9 +90,9 @@ HttpServerCommand::HttpServerCommand HttpServerCommand::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) : Command(cuid), e_(e), socket_(socket), @@ -137,7 +137,7 @@ std::string createWebSocketServerKey(const std::string& clientKey) } // namespace namespace { -int websocketHandshake(const SharedHandle<HttpHeader>& header) +int websocketHandshake(const std::shared_ptr<HttpHeader>& header) { if(header->getMethod() != "GET" || header->find(HttpHeader::SEC_WEBSOCKET_KEY).empty()) { @@ -190,7 +190,7 @@ bool HttpServerCommand::execute() } #endif // ENABLE_SSL - SharedHandle<HttpHeader> header; + std::shared_ptr<HttpHeader> header; header = httpServer_->receiveRequest(); if(!header) { updateWriteCheck(); |
