/* */ #include "DHTPingReplyMessage.h" #include #include "DHTNode.h" #include "bencode.h" 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() {} BDE DHTPingReplyMessage::getResponse() { BDE rDict = BDE::dict(); rDict[DHTMessage::ID] = BDE(_id, DHT_ID_LENGTH); return rDict; } std::string DHTPingReplyMessage::getMessageType() const { return PING; } void DHTPingReplyMessage::validate() const {} } // namespace aria2