added wxSocketBase::GetTimeout() to match existing SetTimeout()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -160,6 +160,7 @@ public:
|
||||
wxSocketFlags GetFlags() const { return m_flags; }
|
||||
void SetFlags(wxSocketFlags flags);
|
||||
void SetTimeout(long seconds);
|
||||
long GetTimeout() const { return m_timeout; }
|
||||
|
||||
bool GetOption(int level, int optname, void *optval, int *optlen);
|
||||
bool SetOption(int level, int optname, const void *optval, int optlen);
|
||||
|
@@ -712,6 +712,13 @@ public:
|
||||
*/
|
||||
bool GetPeer(wxSockAddress& addr) const;
|
||||
|
||||
/**
|
||||
Return the socket timeout in seconds.
|
||||
|
||||
The timeout can be set using SetTimeout() and is 10 minutes by default.
|
||||
*/
|
||||
long GetTimeout() const;
|
||||
|
||||
/**
|
||||
Returns @true if the socket is connected.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user