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_);
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
// WARNING: still in alpha stage
-class wxDatagramSocket : public wxSocketBase
+class WXDLLEXPORT wxDatagramSocket : public wxSocketBase
{
DECLARE_CLASS(wxDatagramSocket)