/* */ #ifndef D_DHT_PING_REPLY_MESSAGE_H #define D_DHT_PING_REPLY_MESSAGE_H #include "DHTResponseMessage.h" #include "DHTConstants.h" namespace aria2 { class DHTPingReplyMessage:public DHTResponseMessage { private: unsigned char id_[DHT_ID_LENGTH]; public: DHTPingReplyMessage(const SharedHandle& localNode, const SharedHandle& remoteNode, const unsigned char* id, const std::string& transactionID); virtual ~DHTPingReplyMessage(); virtual void doReceivedAction(); virtual SharedHandle getResponse(); virtual const std::string& getMessageType() const; virtual void accept(DHTMessageCallback* callback); const unsigned char* getRemoteID() { return id_; } static const std::string PING; }; } // namespace aria2 #endif // D_DHT_PING_REPLY_MESSAGE_H