X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/163f315474dbed303b55fa7bf1d98651741164ec..82df67d960355e99a66b1db473b9d6236bf2fbb9:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index aa1452743f..b8ebcb846b 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -185,6 +185,11 @@ public: void SetNotify(wxSocketEventFlags flags); void Notify(bool notify); + // initialize/shutdown the sockets (usually called automatically) + static bool IsInitialized(); + static bool Initialize(); + static void Shutdown(); + // callbacks are deprecated, use events instead #if WXWIN_COMPATIBILITY wxSockCbk Callback(wxSockCbk cbk_); @@ -247,6 +252,9 @@ private: bool m_notify; // notify events to users? wxSocketEventFlags m_eventmask; // which events to notify? + // the initialization count, GSocket is initialized if > 0 + static size_t m_countInit; + // callbacks are deprecated, use events instead #if WXWIN_COMPATIBILITY wxSockCbk m_cbk; // callback @@ -297,7 +305,7 @@ public: // WARNING: still in alpha stage -class wxDatagramSocket : public wxSocketBase +class WXDLLEXPORT wxDatagramSocket : public wxSocketBase { DECLARE_CLASS(wxDatagramSocket)