X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30dfb744887db030ee38663bd206df49cde64990..8c6686ef7b0d43696d622c6e3fc58c29048ea06e:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index 401768641e..ee2578f3c2 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -108,7 +108,8 @@ public: bool Destroy(); // state - inline bool Ok() const { return (m_socket != NULL); }; + inline bool Ok() const { return IsOk(); } + inline bool IsOk() const { return (m_socket != NULL); }; inline bool Error() const { return m_error; }; inline bool IsConnected() const { return m_connected; }; inline bool IsData() { return WaitForRead(0, 0); };