I have gone through the classes under FTP. There are three classes specified. I want to create a FTP Client using FTPClientSession. When I use the constructor to create socket and open up the host, I got "Connection Timeout" error.
I am sure that I am missing something. Please review the code and help me out to connect using FTPClientSession. Using FTPClientSession only we can create our own FTP client by using the members in FTPClientSession class.
Code snippet :
Code: Select all
std::string host="ftp://www.myhost.com"; //My FTP host
Poco::UInt16 port=21; //FTP Port
catch (Exception& exc)
std::cerr << exc.displayText() << std::endl;