diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-02-25 00:56:49 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-02-25 00:56:49 +0900 |
| commit | d68741697ad93e4099b16c7fbfedc7ed4b98b75f (patch) | |
| tree | e59f740db763e412818141cb72e62a0e7b26b108 /src/DownloadEngine.h | |
| parent | b782a56b1c178795fda4ca7ed2ee4d9621927aab (diff) | |
Support UDP tracker
It shares UDP listening port with IPv4 DHT. At the moment, in order to
enable UDP tracker support, enable IPv4 DHT.
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index 05a8b03a..d949bff6 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -79,7 +79,7 @@ private: SharedHandle<StatCalc> statCalc_; - bool haltRequested_; + int haltRequested_; class SocketPoolEntry { private: @@ -230,6 +230,11 @@ public: return haltRequested_; } + bool isForceHaltRequested() const + { + return haltRequested_ >= 2; + } + void requestHalt(); void requestForceHalt(); |
