diff options
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(); |
