/* */ #include "DHTPingReplyMessage.h" #include "DHTNode.h" #include "Dictionary.h" #include "Data.h" #include namespace aria2 { const std::string DHTPingReplyMessage::PING("ping"); DHTPingReplyMessage::DHTPingReplyMessage(const SharedHandle& localNode, const SharedHandle& remoteNode, const unsigned char* id, const std::string& transactionID): DHTResponseMessage(localNode, remoteNode, transactionID) { memcpy(_id, id, DHT_ID_LENGTH); } DHTPingReplyMessage::~DHTPingReplyMessage() {} void DHTPingReplyMessage::doReceivedAction() {} Dictionary* DHTPingReplyMessage::getResponse() { Dictionary* r = new Dictionary(); r->put(DHTMessage::ID, new Data(_id, DHT_ID_LENGTH)); return r; } std::string DHTPingReplyMessage::getMessageType() const { return PING; } void DHTPingReplyMessage::validate() const {} } // namespace aria2