make wxSocketBase::SetTimeout virtual and make it protected in wxFTP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
|||||||
bool Connect(const wxString& host);
|
bool Connect(const wxString& host);
|
||||||
|
|
||||||
// disconnect
|
// disconnect
|
||||||
virtual bool Close();
|
virtual bool Close(); // does NOT set m_lastError
|
||||||
|
|
||||||
// Parameters set up
|
// Parameters set up
|
||||||
|
|
||||||
@@ -119,6 +119,11 @@ public:
|
|||||||
bool details = false);
|
bool details = false);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
// just change access from public to protected for this wxSocketBase function:
|
||||||
|
// use SetDefaultTimeout instead which also sets our m_uiDefaultTimeout var
|
||||||
|
virtual void SetTimeout(long seconds)
|
||||||
|
{ wxSocketBase::SetTimeout(seconds); }
|
||||||
|
|
||||||
// this executes a simple ftp command with the given argument and returns
|
// this executes a simple ftp command with the given argument and returns
|
||||||
// true if it its return code starts with '2'
|
// true if it its return code starts with '2'
|
||||||
bool DoSimpleCommand(const wxChar *command,
|
bool DoSimpleCommand(const wxChar *command,
|
||||||
|
@@ -165,7 +165,7 @@ public:
|
|||||||
|
|
||||||
wxSocketFlags GetFlags() const { return m_flags; }
|
wxSocketFlags GetFlags() const { return m_flags; }
|
||||||
void SetFlags(wxSocketFlags flags);
|
void SetFlags(wxSocketFlags flags);
|
||||||
void SetTimeout(long seconds);
|
virtual void SetTimeout(long seconds);
|
||||||
long GetTimeout() const { return m_timeout; }
|
long GetTimeout() const { return m_timeout; }
|
||||||
|
|
||||||
bool GetOption(int level, int optname, void *optval, int *optlen);
|
bool GetOption(int level, int optname, void *optval, int *optlen);
|
||||||
|
Reference in New Issue
Block a user