X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..e2bfe6731edfca732418012b03438db85b4aa0dd:/include/wx/protocol/ftp.h diff --git a/include/wx/protocol/ftp.h b/include/wx/protocol/ftp.h index f79c40f1bc..21312e87fd 100644 --- a/include/wx/protocol/ftp.h +++ b/include/wx/protocol/ftp.h @@ -38,7 +38,7 @@ public: void SetUser(const wxString& user) { m_user = user; } void SetPassword(const wxString& passwd) { m_passwd = passwd; } - bool Connect(wxSockAddress& addr, bool wait = true); + bool Connect(const wxSockAddress& addr, bool wait = true); bool Connect(const wxString& host); // disconnect @@ -47,7 +47,7 @@ public: // Parameters set up // set transfer mode now - void SetPassive(bool pasv) { m_bPassive = pasv; }; + void SetPassive(bool pasv) { m_bPassive = pasv; } void SetDefaultTimeout(wxUint32 Value); bool SetBinary() { return SetTransferMode(BINARY); } bool SetAscii() { return SetTransferMode(ASCII); } @@ -138,7 +138,7 @@ protected: wxSocketBase *GetActivePort(); // helper for GetPort() - wxString GetPortCmdArgument(wxIPV4address Local, wxIPV4address New); + wxString GetPortCmdArgument(const wxIPV4address& Local, const wxIPV4address& New); // accept connection from server in active mode, returns the same socket as // passed in in passive mode