diff options
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) { |
