summaryrefslogtreecommitdiff
path: root/src/FtpConnection.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-07-30 14:45:35 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-07-30 14:45:35 +0000
commit7958ce43662d8dd070f2ca71c06ca630198568ef (patch)
tree023ab57b1c8f575ef3b55895447d9bba49474e26 /src/FtpConnection.h
parent20b7c8cd0e058ba74bc311c855db6111726276ef (diff)
2010-07-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added FTP EPSV and EPRT command support. aria2 issues these commands when address family of local socket is AF_INET6. * src/FtpConnection.cc * src/FtpConnection.h * src/FtpNegotiationCommand.cc * src/FtpNegotiationCommand.h * src/SocketCore.cc * src/SocketCore.h * test/FtpConnectionTest.cc
Diffstat (limited to 'src/FtpConnection.h')
-rw-r--r--src/FtpConnection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FtpConnection.h b/src/FtpConnection.h
index 891b6feb..463c2af7 100644
--- a/src/FtpConnection.h
+++ b/src/FtpConnection.h
@@ -95,8 +95,10 @@ public:
bool sendCwd(const std::string& dir);
bool sendMdtm();
bool sendSize();
+ bool sendEpsv();
bool sendPasv();
SharedHandle<SocketCore> createServerSocket();
+ bool sendEprt(const SharedHandle<SocketCore>& serverSocket);
bool sendPort(const SharedHandle<SocketCore>& serverSocket);
bool sendRest(const SharedHandle<Segment>& segment);
bool sendRetr();
@@ -110,6 +112,7 @@ public:
// date cannot be parsed, then assign Time::null() to given time.
// If reply is not received yet, returns 0.
unsigned int receiveMdtmResponse(Time& time);
+ unsigned int receiveEpsvResponse(uint16_t& port);
unsigned int receivePasvResponse(std::pair<std::string, uint16_t>& dest);
unsigned int receivePwdResponse(std::string& pwd);