diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-01 00:12:27 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-01 00:12:27 +0900 |
| commit | 597e1a5c1b10aa3668f91bcae02a864dcd0c045b (patch) | |
| tree | 4437c2896b410b441013452b7385dfa303441772 /src/HttpRequestCommand.h | |
| parent | d671d8bf3672cbefc06f3727f82b77872abe6120 (diff) | |
Implement simple Happy Eyeballs for HTTP/FTP downloads
Diffstat (limited to 'src/HttpRequestCommand.h')
| -rw-r--r-- | src/HttpRequestCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HttpRequestCommand.h b/src/HttpRequestCommand.h index 8f6d37f9..6ca2278b 100644 --- a/src/HttpRequestCommand.h +++ b/src/HttpRequestCommand.h @@ -41,6 +41,7 @@ namespace aria2 { class HttpConnection; class SocketCore; +class BackupConnectInfo; // HttpRequestCommand sends HTTP request header to remote server. // Because network I/O is non-blocking, execute() returns false if all @@ -53,8 +54,11 @@ private: SharedHandle<Request> proxyRequest_; SharedHandle<HttpConnection> httpConnection_; + + SharedHandle<BackupConnectInfo> backupConnectionInfo_; protected: virtual bool executeInternal(); + virtual bool noCheck(); public: HttpRequestCommand(cuid_t cuid, const SharedHandle<Request>& req, @@ -66,6 +70,7 @@ public: virtual ~HttpRequestCommand(); void setProxyRequest(const SharedHandle<Request>& proxyRequest); + void setBackupConnectInfo(const SharedHandle<BackupConnectInfo>& info); }; } // namespace aria2 |
