diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/DHTConnectionImpl.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
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 |
