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/DHTConnectionImpl.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/DHTConnectionImpl.h')
| -rw-r--r-- | src/DHTConnectionImpl.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DHTConnectionImpl.h b/src/DHTConnectionImpl.h index 91875e05..8409f053 100644 --- a/src/DHTConnectionImpl.h +++ b/src/DHTConnectionImpl.h @@ -36,7 +36,9 @@ #define D_DHT_CONNECTION_IMPL_H #include "DHTConnection.h" -#include "SharedHandle.h" + +#include <memory> + #include "SegList.h" namespace aria2 { @@ -45,7 +47,7 @@ class SocketCore; class DHTConnectionImpl:public DHTConnection { private: - SharedHandle<SocketCore> socket_; + std::shared_ptr<SocketCore> socket_; int family_; public: @@ -80,7 +82,7 @@ public: virtual ssize_t sendMessage(const unsigned char* data, size_t len, const std::string& host, uint16_t port); - const SharedHandle<SocketCore>& getSocket() const + const std::shared_ptr<SocketCore>& getSocket() const { return socket_; } |
