# define SOCKET_DEBUG(args)
#endif /* __GSOCKET_DEBUG__ */
-/* Constructors / Destructors for wxSocketImplUnix */
-
-wxSocketImplUnix::wxSocketImplUnix(wxSocketBase& wxsocket)
- : wxSocketImpl(wxsocket)
+/* static */
+wxSocketImpl *wxSocketImpl::Create(wxSocketBase& wxsocket)
{
- m_fds[0] =
- m_fds[1] = -1;
-
- m_use_events = false;
+ return new wxSocketImplUnix(wxsocket);
}
+
/*
* Disallow further read/write operations on this socket, close
* the fd and disable all callbacks.
if (m_use_events)
{
m_detected = wxSOCKET_LOST_FLAG;
- Detected_Read();
+ OnReadWaiting();
return 0;
}
}
Shutdown();
}
-void wxSocketImplUnix::Detected_Read()
+void wxSocketImplUnix::OnReadWaiting()
{
char c;
- /* Safeguard against straggling call to Detected_Read */
if (m_fd == INVALID_SOCKET)
{
return;
}
}
-void wxSocketImplUnix::Detected_Write()
+void wxSocketImplUnix::OnWriteWaiting()
{
/* If we have already detected a LOST event, then don't try
* to do any further processing.
}
}
+void wxSocketImplUnix::OnExceptionWaiting()
+{
+ wxFAIL_MSG( "not supposed to be called" );
+}
+
/*
* -------------------------------------------------------------------------
* GAddress
return wxSOCKET_NOERROR;
}
#endif /* !defined(__VISAGECPP__) */
+
#endif /* wxUSE_SOCKETS */