/* */ #ifndef _D_PEER_LISTEN_COMMAND_H_ #define _D_PEER_LISTEN_COMMAND_H_ #include "Command.h" #include "Socket.h" class DownloadEngine; class PeerListenCommand : public Command { private: DownloadEngine* e; SocketHandle socket; int32_t _lowestSpeedLimit; public: PeerListenCommand(int32_t cuid, DownloadEngine* e); virtual ~PeerListenCommand(); virtual bool execute(); int32_t bindPort(int32_t portRangeStart, int32_t portRangeEnd); void setLowestSpeedLimit(int32_t speed) { _lowestSpeedLimit = speed; } }; #endif // _D_PEER_LISTEN_COMMAND_H_