pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.

Home Page:https://pocoproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using passive mode, it seems that it has not been converted to data connection

gitboy9 opened this issue · comments

my code is like this:
FTPClientSession session("hostip");
session.login("username", "passwd");
session.sendCommand("EPSV", respose);
session.setPassive(true);
session.sendCommand("RETR test.txt", respose);

the response returned message is that’ 425 Can't open data connection for transfer of "/test.txt"‘
So I'm very curious because it's written in the constructor that passive mode will be converted to data connection.

And I want to implement the breakpoint continuation function, but I have looked at all the FTP APIs and have not directly implemented the breakpoint continuation API, so I want to adopt the method of directly sending commands to implement it