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/FtpNegotiationCommand.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/FtpNegotiationCommand.h')
| -rw-r--r-- | src/FtpNegotiationCommand.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/FtpNegotiationCommand.h b/src/FtpNegotiationCommand.h index bdbc2c15..afa75865 100644 --- a/src/FtpNegotiationCommand.h +++ b/src/FtpNegotiationCommand.h @@ -76,6 +76,7 @@ public: SEQ_HEAD_OK, SEQ_DOWNLOAD_ALREADY_COMPLETED, SEQ_FILE_PREPARATION, // File allocation after SIZE command + SEQ_EXIT }; private: bool recvGreeting(); @@ -118,6 +119,10 @@ private: SharedHandle<SocketCore> serverSocket; Seq sequence; SharedHandle<FtpConnection> ftp; + + std::string _connectedHostname; + std::string _connectedAddr; + uint16_t _connectedPort; protected: virtual bool executeInternal(); public: @@ -130,6 +135,14 @@ public: Seq seq = SEQ_RECV_GREETING, const std::string& baseWorkingDir = "/"); virtual ~FtpNegotiationCommand(); + + void setConnectedAddr + (const std::string& hostname, const std::string& addr, uint16_t port) + { + _connectedHostname = hostname; + _connectedAddr = addr; + _connectedPort = port; + } }; } // namespace aria2 |
