// wxSocketImpl implementation
// ============================================================================
-/* static */
-wxSocketImpl *wxSocketImpl::Create(wxSocketBase& wxsocket)
-{
- return new wxSocketImplUnix(wxsocket);
-}
-
-
wxSocketError wxSocketImplUnix::GetLastError() const
{
switch ( errno )
void wxSocketImplUnix::DoEnableEvents(int flags, bool enable)
{
wxSocketManager * const manager = wxSocketManager::Get();
+ if (!manager)
+ return;
+
if ( enable )
{
if ( flags & wxSOCKET_INPUT_FLAG )