/* */ #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 std::shared_ptr& localNode, const std::shared_ptr& remoteNode, const unsigned char* id, const std::string& transactionID); virtual void doReceivedAction() CXX11_OVERRIDE; virtual std::unique_ptr getResponse() CXX11_OVERRIDE; virtual const std::string& getMessageType() const CXX11_OVERRIDE; virtual void accept(DHTMessageCallback* callback) CXX11_OVERRIDE; const unsigned char* getRemoteID() { return id_; } static const std::string PING; }; } // namespace aria2 #endif // D_DHT_PING_REPLY_MESSAGE_H