From 597e1a5c1b10aa3668f91bcae02a864dcd0c045b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 1 Apr 2013 00:12:27 +0900 Subject: Implement simple Happy Eyeballs for HTTP/FTP downloads --- src/HttpRequestCommand.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/HttpRequestCommand.h') 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 proxyRequest_; SharedHandle httpConnection_; + + SharedHandle backupConnectionInfo_; protected: virtual bool executeInternal(); + virtual bool noCheck(); public: HttpRequestCommand(cuid_t cuid, const SharedHandle& req, @@ -66,6 +70,7 @@ public: virtual ~HttpRequestCommand(); void setProxyRequest(const SharedHandle& proxyRequest); + void setBackupConnectInfo(const SharedHandle& info); }; } // namespace aria2 -- cgit