summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-27 16:06:34 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-27 16:06:34 +0000
commite9e215dc1f37827fabd87d6fb7ed99afa843d53a (patch)
tree6d469623c5b8a706f835aaebef53769736523eb9 /src/AbstractCommand.h
parent080fcd5fb81793cf53e5b5af8193df9440196ee1 (diff)
2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that HTTPS download fails. * src/AbstractCommand.cc * src/AbstractCommand.h * src/DownloadCommand.cc * src/FtpConnection.cc * src/HttpConnection.cc * src/HttpRequestCommand.cc * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc * src/MSEHandshake.cc * src/PeerConnection.cc * src/SocketCore.cc * src/SocketCore.h Fixed the bug that aria2 doesn't download whole content body and cannot reuse connection if chunked transfer encoding and gzip content encoding are set. * src/DownloadCommand.cc * src/HttpSkipResponseCommand.cc
Diffstat (limited to 'src/AbstractCommand.h')
-rw-r--r--src/AbstractCommand.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h
index ea4ab321..f3fd93d9 100644
--- a/src/AbstractCommand.h
+++ b/src/AbstractCommand.h
@@ -84,6 +84,17 @@ protected:
void disableReadCheckSocket();
void disableWriteCheckSocket();
+ /**
+ * If pred == true, calls setReadCheckSocket(socket). Otherwise, calls
+ * disableReadCheckSocket().
+ */
+ void setReadCheckSocketIf(const SharedHandle<SocketCore>& socket, bool pred);
+ /**
+ * If pred == true, calls setWriteCheckSocket(socket). Otherwise, calls
+ * disableWriteCheckSocket().
+ */
+ void setWriteCheckSocketIf(const SharedHandle<SocketCore>& socket, bool pred);
+
void setTimeout(time_t timeout) { this->timeout = timeout; }
void prepareForNextAction(Command* nextCommand = 0);