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/HttpProxyRequestCommand.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/HttpProxyRequestCommand.cc') diff --git a/src/HttpProxyRequestCommand.cc b/src/HttpProxyRequestCommand.cc index 410345ce..9be2a230 100644 --- a/src/HttpProxyRequestCommand.cc +++ b/src/HttpProxyRequestCommand.cc @@ -62,4 +62,16 @@ Command* HttpProxyRequestCommand::getNextCommand() getHttpConnection(), getDownloadEngine(), getSocket()); } +Command* HttpProxyRequestCommand::createSelf +(const SharedHandle& socket) +{ + return new HttpProxyRequestCommand(getCuid(), + getRequest(), + getFileEntry(), + getRequestGroup(), + getDownloadEngine(), + getProxyRequest(), + socket); +} + } // namespace aria2 -- cgit