diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-21 12:27:17 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-21 12:27:17 +0000 |
| commit | 5a8710676d58be3b3f3606993e802c6a075dbd89 (patch) | |
| tree | 634e1f7be2dffb00c4248323c1465f22aedb6f60 /src/AbstractCommand.h | |
| parent | 6d6f25b75c1557f2b92e51fe589aadc48a1fdb68 (diff) | |
Diffstat (limited to 'src/AbstractCommand.h')
| -rw-r--r-- | src/AbstractCommand.h | 13 |
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(); |
