/* */ #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 SharedHandle& localNode, const SharedHandle& remoteNode, const std::string& transactionID); virtual ~DHTFindNodeReplyMessage(); virtual void doReceivedAction(); virtual SharedHandle getResponse(); virtual const std::string& getMessageType() const; virtual void accept(DHTMessageCallback* callback); const std::vector >& getClosestKNodes() const { return closestKNodes_; } void setClosestKNodes (const 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