/* */ #include "DHTAnnouncePeerReplyMessage.h" #include "DHTNode.h" #include "Dictionary.h" #include "Data.h" namespace aria2 { const std::string DHTAnnouncePeerReplyMessage::ANNOUNCE_PEER("announce_peer"); DHTAnnouncePeerReplyMessage::DHTAnnouncePeerReplyMessage(const SharedHandle& localNode, const SharedHandle& remoteNode, const std::string& transactionID): DHTResponseMessage(localNode, remoteNode, transactionID) {} DHTAnnouncePeerReplyMessage::~DHTAnnouncePeerReplyMessage() {} void DHTAnnouncePeerReplyMessage::doReceivedAction() {} Dictionary* DHTAnnouncePeerReplyMessage::getResponse() { Dictionary* r = new Dictionary(); r->put(DHTMessage::ID, new Data(_localNode->getID(), DHT_ID_LENGTH)); return r; } std::string DHTAnnouncePeerReplyMessage::getMessageType() const { return ANNOUNCE_PEER; } void DHTAnnouncePeerReplyMessage::validate() const {} } // namespace aria2