diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-02 15:18:13 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-02 15:18:13 +0000 |
| commit | 01fdb2aaeb4dcb351931c14ca63d9347f0adc529 (patch) | |
| tree | 94f6e4a327c77b358316d5790224d9cccee8e3c1 /src/InitiateConnectionCommand.h | |
| parent | 8796993c71c8a326c2f261c01db5066cfc3b2848 (diff) | |
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Try all available addresses returned by DNS until it gets
connected in HTTP(S)/FTP download
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyRequestCommand.h
* src/DNSCache.h
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/FtpInitiateConnectionCommand.cc
* src/FtpInitiateConnectionCommand.h
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/HttpRequestCommand.cc
* src/HttpRequestCommand.h
* src/InitiateConnectionCommand.cc
* src/InitiateConnectionCommand.h
* test/DNSCacheTest.cc
* test/Makefile.am
* test/SimpleDNSCacheTest.cc
Diffstat (limited to 'src/InitiateConnectionCommand.h')
| -rw-r--r-- | src/InitiateConnectionCommand.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/InitiateConnectionCommand.h b/src/InitiateConnectionCommand.h index ed206581..ecf0ad93 100644 --- a/src/InitiateConnectionCommand.h +++ b/src/InitiateConnectionCommand.h @@ -49,8 +49,15 @@ protected: */ virtual bool executeInternal(); + // hostname and port are the hostname and port number we are going + // to connect. If proxy server is used, these values are hostname + // and port of proxy server. addr is one of resolved address and we + // use this address this time. resolvedAddresses are all addresses + // resolved. proxyRequest is set if we are going to use proxy + // server. virtual Command* createNextCommand - (const std::deque<std::string>& resolvedAddresses, + (const std::string& hostname, const std::string& addr, uint16_t port, + const std::deque<std::string>& resolvedAddresses, const SharedHandle<Request>& proxyRequest) = 0; public: InitiateConnectionCommand(int cuid, const SharedHandle<Request>& req, |
