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