diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:12:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:20:27 +0900 |
| commit | d64089632e82a2548752c7a6baaa68365a795a74 (patch) | |
| tree | 57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/DHTConnectionImpl.h | |
| parent | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff) | |
| parent | a7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/DHTConnectionImpl.h')
| -rw-r--r-- | src/DHTConnectionImpl.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/DHTConnectionImpl.h b/src/DHTConnectionImpl.h index 18b89ee1..5ec9ac20 100644 --- a/src/DHTConnectionImpl.h +++ b/src/DHTConnectionImpl.h @@ -45,11 +45,12 @@ namespace aria2 { class SocketCore; -class DHTConnectionImpl:public DHTConnection { +class DHTConnectionImpl : public DHTConnection { private: std::shared_ptr<SocketCore> socket_; int family_; + public: DHTConnectionImpl(int family); @@ -77,17 +78,14 @@ public: bool bind(uint16_t& port, const std::string& addr); virtual ssize_t receiveMessage(unsigned char* data, size_t len, - std::string& host, uint16_t& port) - CXX11_OVERRIDE; + std::string& host, + uint16_t& port) CXX11_OVERRIDE; virtual ssize_t sendMessage(const unsigned char* data, size_t len, - const std::string& host, uint16_t port) - CXX11_OVERRIDE; + const std::string& host, + uint16_t port) CXX11_OVERRIDE; - const std::shared_ptr<SocketCore>& getSocket() const - { - return socket_; - } + const std::shared_ptr<SocketCore>& getSocket() const { return socket_; } }; } // namespace aria2 |
