/* */ #ifndef D_DHT_FIND_NODE_REPLY_MESSAGE_H #define D_DHT_FIND_NODE_REPLY_MESSAGE_H #include "DHTResponseMessage.h" #include namespace aria2 { class DHTFindNodeReplyMessage:public DHTResponseMessage { private: int family_; std::vector> closestKNodes_; protected: virtual std::string toStringOptional() const; public: DHTFindNodeReplyMessage(int family, const std::shared_ptr& localNode, const std::shared_ptr& remoteNode, const std::string& transactionID); virtual void doReceivedAction(); virtual std::shared_ptr getResponse(); virtual const std::string& getMessageType() const; virtual void accept(DHTMessageCallback* callback); const std::vector>& getClosestKNodes() const { return closestKNodes_; } void setClosestKNodes(std::vector> closestKNodes); static const std::string FIND_NODE; static const std::string NODES; static const std::string NODES6; }; } // namespace aria2 #endif // D_DHT_FIND_NODE_REPLY_MESSAGE_H