summaryrefslogtreecommitdiff
path: root/src/DownloadCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-05-12 00:55:12 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-05-12 00:55:12 +0900
commit89c1916fa57d87ea09142cc3588044c691d1928f (patch)
treeea35f4171e9e5b85e7336688b6089786a9c6701d /src/DownloadCommand.h
parent4654f1974a5faa832518ba3875ecb3e77224e656 (diff)
parent2758fba10c79a76e07f7cfb894f5cfcbaff85ff7 (diff)
Merge branch 'sftp'
Diffstat (limited to 'src/DownloadCommand.h')
-rw-r--r--src/DownloadCommand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DownloadCommand.h b/src/DownloadCommand.h
index 3efaf5a0..485cdc74 100644
--- a/src/DownloadCommand.h
+++ b/src/DownloadCommand.h
@@ -76,6 +76,12 @@ protected:
// This is file local offset
virtual int64_t getRequestEndOffset() const = 0;
+
+ // Returns true if socket should be monitored for writing. The
+ // default implementation is return the return value of
+ // getSocket()->wantWrite().
+ virtual bool shouldEnableWriteCheck();
+
public:
DownloadCommand(cuid_t cuid,
const std::shared_ptr<Request>& req,