/* */ #ifndef _D_DHT_RESPONSE_MESSAGE_H_ #define _D_DHT_RESPONSE_MESSAGE_H_ #include "DHTAbstractMessage.h" #include "A2STR.h" namespace aria2 { class DHTResponseMessage:public DHTAbstractMessage { protected: virtual std::string toStringOptional() const { return A2STR::NIL; } public: DHTResponseMessage(const SharedHandle& localNode, const SharedHandle& remoteNode, const std::string& transactionID); virtual ~DHTResponseMessage(); virtual const std::string& getType() const; virtual void fillMessage(BDE& msgDict); virtual BDE getResponse() = 0; virtual bool isReply() const; virtual std::string toString() const; static const std::string R; }; } // namespace aria2 #endif // _D_DHT_RESPONSE_MESSAGE_H_