summaryrefslogtreecommitdiff
path: root/src/Request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Request.h')
-rw-r--r--src/Request.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Request.h b/src/Request.h
index 0d9554e6..8d8676ef 100644
--- a/src/Request.h
+++ b/src/Request.h
@@ -55,7 +55,7 @@ private:
string dir;
string file;
map<string, int> defaultPorts;
- int retryCount;
+ int tryCount;
bool parseUrl(string url);
public:
Segment seg;
@@ -72,15 +72,14 @@ public:
// Returns true if parsing goes successful, otherwise returns false.
bool redirectUrl(string url);
bool resetUrl();
- void resetRetryCount();
- void addRetryCount();
- int getRetryCount();
- bool noMoreRetry();
+ void resetTryCount() { tryCount = 0; }
+ void addTryCount() { tryCount++; }
+ int getTryCount() const { return tryCount; }
+ //bool noMoreTry() const { return tryCount >= PREF_MAX_TRY; }
string getUrl() const { return url; }
string getCurrentUrl() const { return currentUrl; }
string getPreviousUrl() const { return previousUrl; }
- void setPreviousUrl(string url) { previousUrl = url; }
string getReferer() const { return referer; }
void setReferer(string url) { referer = previousUrl = url; }
string getProtocol() const { return protocol; }