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/DHTPingReplyMessage.cc | |
| parent | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff) | |
| parent | a7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/DHTPingReplyMessage.cc')
| -rw-r--r-- | src/DHTPingReplyMessage.cc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/DHTPingReplyMessage.cc b/src/DHTPingReplyMessage.cc index 38630dac..9d18c6fc 100644 --- a/src/DHTPingReplyMessage.cc +++ b/src/DHTPingReplyMessage.cc @@ -43,12 +43,11 @@ namespace aria2 { const std::string DHTPingReplyMessage::PING("ping"); -DHTPingReplyMessage::DHTPingReplyMessage -(const std::shared_ptr<DHTNode>& localNode, - const std::shared_ptr<DHTNode>& remoteNode, - const unsigned char* id, - const std::string& transactionID): - DHTResponseMessage(localNode, remoteNode, transactionID) +DHTPingReplyMessage::DHTPingReplyMessage( + const std::shared_ptr<DHTNode>& localNode, + const std::shared_ptr<DHTNode>& remoteNode, const unsigned char* id, + const std::string& transactionID) + : DHTResponseMessage(localNode, remoteNode, transactionID) { memcpy(id_, id, DHT_ID_LENGTH); } @@ -62,10 +61,7 @@ std::unique_ptr<Dict> DHTPingReplyMessage::getResponse() return rDict; } -const std::string& DHTPingReplyMessage::getMessageType() const -{ - return PING; -} +const std::string& DHTPingReplyMessage::getMessageType() const { return PING; } void DHTPingReplyMessage::accept(DHTMessageCallback* callback) { |
