/* */ #ifndef _D_BT_HAVE_ALL_MESSAGE_H_ #define _D_BT_HAVE_ALL_MESSAGE_H_ #include "SimpleBtMessage.h" namespace aria2 { class BtHaveAllMessage; typedef SharedHandle BtHaveAllMessageHandle; class BtHaveAllMessage : public SimpleBtMessage { private: unsigned char* msg; static int32_t MESSAGE_LENGTH; public: BtHaveAllMessage():msg(0) {} virtual ~BtHaveAllMessage() { delete [] msg; } static const int8_t ID = 14; static BtHaveAllMessageHandle create(const unsigned char* data, int32_t dataLength); virtual int8_t getId() { return ID; } virtual void doReceivedAction(); virtual const unsigned char* getMessage(); virtual int32_t getMessageLength(); virtual std::string toString() const; }; } // namespace aria2 #endif // _D_BT_HAVE_ALL_MESSAGE_H_