/* */ #ifndef _D_LPD_RECEIVE_MESSAGE_COMMAND_H_ #define _D_LPD_RECEIVE_MESSAGE_COMMAND_H_ #include "Command.h" #include "SharedHandle.h" namespace aria2 { class LpdMessageReceiver; class DownloadEngine; class SocketCore; class LpdReceiveMessageCommand:public Command { private: SharedHandle _receiver; static unsigned int __numInstance; static LpdReceiveMessageCommand* __instance; LpdReceiveMessageCommand (int32_t cuid, const SharedHandle& receiver, DownloadEngine* e); protected: DownloadEngine* _e; public: virtual ~LpdReceiveMessageCommand(); virtual bool execute(); SharedHandle getReceiverSocket() const; static LpdReceiveMessageCommand* getInstance (DownloadEngine* e, const SharedHandle& receiver); // If __numInstance is 0, then return 0. If __numInstance > 0, it // returns __instance static LpdReceiveMessageCommand* getInstance(); static unsigned int getNumInstance() { return __numInstance; } }; } // namespace aria2 #endif // _D_LPD_RECEIVE_MESSAGE_COMMAND_H_