/* */ #ifndef _D_PEER_LISTEN_COMMAND_H_ #define _D_PEER_LISTEN_COMMAND_H_ #include "Command.h" #include "SharedHandle.h" #include "IntSequence.h" namespace aria2 { class DownloadEngine; class SocketCore; class PeerListenCommand : public Command { private: DownloadEngine* e; SharedHandle socket; int32_t _lowestSpeedLimit; static int32_t __numInstance; static PeerListenCommand* __instance; public: PeerListenCommand(int32_t cuid, DownloadEngine* e); virtual ~PeerListenCommand(); virtual bool execute(); int32_t bindPort(IntSequence& seq); void setLowestSpeedLimit(int32_t speed) { _lowestSpeedLimit = speed; } static PeerListenCommand* getInstance(DownloadEngine* e); static int32_t getNumInstance() { return __numInstance; } }; } // namespace aria2 #endif // _D_PEER_LISTEN_COMMAND_H_