X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/259d1674f293dcb7bbc0fa1c38392d899ce71bc0..bae41ce1922f02b8af69b4fffbf3b6a2183f9ba7:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index e4b086669b..df34996012 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -905,5 +905,22 @@ void wxSocketEvent::CopyObject(wxObject& obj_d) const event->m_socket = m_socket; } +// -------------------------------------------------------------------------- +// wxSocketModule +// -------------------------------------------------------------------------- +class WXDLLEXPORT wxSocketModule: public wxModule { + DECLARE_DYNAMIC_CLASS(wxSocketModule) + public: + bool OnInit() { + GSocket_Init(); + return TRUE; + } + void OnExit() { + GSocket_Done(); + } +}; + +IMPLEMENT_DYNAMIC_CLASS(wxSocketModule, wxModule) + #endif // wxUSE_SOCKETS