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:
@@ -112,6 +112,22 @@ public:
|
||||
|
||||
|
||||
|
||||
//@{
|
||||
/**
|
||||
Connect to the FTP server to default port (21) of the specified @a host.
|
||||
*/
|
||||
virtual bool Connect(const wxString& host);
|
||||
|
||||
/**
|
||||
Connect to the FTP server to any port of the specified @a host.
|
||||
By default (@a port = 0), connection is made to default FTP port (21)
|
||||
of the specified @a host.
|
||||
|
||||
@since 2.9.1
|
||||
*/
|
||||
virtual bool Connect(const wxString& host, unsigned short port);
|
||||
//@}
|
||||
|
||||
/**
|
||||
@name Functions for managing the FTP connection
|
||||
*/
|
||||
|
Reference in New Issue
Block a user