/* */ #ifndef _D_PEER_LISTEN_COMMAND_H_ #define _D_PEER_LISTEN_COMMAND_H_ #include "Command.h" #include "Socket.h" #include "IntSequence.h" class DownloadEngine; class PeerListenCommand : public Command { private: DownloadEngine* e; SocketHandle 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; } }; #endif // _D_PEER_LISTEN_COMMAND_H_