Allow specifying non default port for wxFTP connections.

Add a wxFTP::Connect() overload taking a port number.

Also specify the default port (21) explicitly if resolving "ftp" service name
failed.

Closes #12145.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-06-17 22:30:31 +00:00
parent 4164cd68d4
commit 9655ec028f
3 changed files with 25 additions and 4 deletions

View File

@@ -35,8 +35,9 @@ public:
virtual ~wxFTP();
// Connecting and disconnecting
bool Connect(const wxSockAddress& addr, bool wait = true);
bool Connect(const wxString& host);
virtual bool Connect(const wxSockAddress& addr, bool wait = true);
virtual bool Connect(const wxString& host) { return Connect(host, 0); }
virtual bool Connect(const wxString& host, unsigned short port);
// disconnect
virtual bool Close();