/* */ #ifndef D_BT_KEEP_ALIVE_MESSAGE_H #define D_BT_KEEP_ALIVE_MESSAGE_H #include "SimpleBtMessage.h" namespace aria2 { class BtKeepAliveMessage : public SimpleBtMessage { private: static const size_t MESSAGE_LENGTH = 4; public: BtKeepAliveMessage():SimpleBtMessage(ID, NAME) {} static const uint8_t ID = 99; static const char NAME[]; virtual void doReceivedAction() {} virtual unsigned char* createMessage(); virtual size_t getMessageLength(); virtual std::string toString() const { return NAME; } }; } // namespace aria2 #endif // D_BT_KEEP_ALIVE_MESSAGE_H