/* */ #ifndef _D_DHT_FIND_NODE_MESSAGE_H_ #define _D_DHT_FIND_NODE_MESSAGE_H_ #include "DHTQueryMessage.h" #include "DHTConstants.h" namespace aria2 { class DHTFindNodeMessage:public DHTQueryMessage { private: unsigned char _targetNodeID[DHT_ID_LENGTH]; public: DHTFindNodeMessage(const SharedHandle& localNode, const SharedHandle& remoteNode, const unsigned char* targetNodeID, const std::string& transactionID = ""); virtual ~DHTFindNodeMessage(); virtual void doReceivedAction(); virtual Dictionary* getArgument(); virtual std::string getMessageType() const; virtual void validate() const; const unsigned char* getTargetNodeID() const { return _targetNodeID; } }; } // namespace aria2 #endif // _D_DHT_FIND_NODE_MESSAGE_H_