summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-22 16:01:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-22 16:01:54 +0000
commit44beebd257b0fb265bea5387850b9beb33c0adc2 (patch)
tree0ec08e4aad18ccff2d578aca1c0b3799d2716c6c /src/AbstractCommand.h
parentd027ca8e7c383e9755d6fb997e8a880df99e88b9 (diff)
parent87a229cab18679042beb06076e5dec1dcfadaeae (diff)
Tagging release 0.2.0 of aria2release-0.2.0
Diffstat (limited to 'src/AbstractCommand.h')
-rw-r--r--src/AbstractCommand.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h
index 3d94511b..10b36462 100644
--- a/src/AbstractCommand.h
+++ b/src/AbstractCommand.h
@@ -37,11 +37,18 @@ protected:
Request* req;
DownloadEngine* e;
Socket* socket;
- bool checkSocketIsReadable;
- bool checkSocketIsWritable;
+
virtual bool prepareForRetry(int wait);
- virtual void onError(Exception* e);
+ virtual void onAbort(Exception* e);
virtual bool executeInternal(Segment segment) = 0;
+
+ void setReadCheckSocket(Socket* socket);
+ void setWriteCheckSocket(Socket* socket);
+private:
+ bool checkSocketIsReadable;
+ bool checkSocketIsWritable;
+ Socket* readCheckTarget;
+ Socket* writeCheckTarget;
public:
AbstractCommand(int cuid, Request* req, DownloadEngine* e, Socket* s= NULL);
virtual ~AbstractCommand();