/* */ #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(int cuid, TorrentDownloadEngine* e, const BtContextHandle& btContext); ~PeerListenCommand(); bool execute(); int bindPort(int portRangeStart, int portRangeEnd); void setLowestSpeedLimit(int32_t speed) { _lowestSpeedLimit = speed; } }; #endif // _D_PEER_LISTEN_COMMAND_H_