wxSocketImpl::Shutdown() doesn't need to be virtual, its implementation can the same in Unix and Win32 versions (events are already disabled by Close() so there is no need to do it again explicitly under Unix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -174,6 +174,10 @@ int _System soclose(int);
|
||||
# define GSOCKET_MSG_NOSIGNAL 0
|
||||
#endif /* MSG_NOSIGNAL */
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// implementation of thread-safe/reentrant functions if they're missing
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_THREADS && (defined(HAVE_GETHOSTBYNAME) || defined(HAVE_GETSERVBYNAME))
|
||||
# include "wx/thread.h"
|
||||
#endif
|
||||
@@ -424,6 +428,10 @@ struct servent *wxGetservbyname_r(const char *port, const char *protocol,
|
||||
return se;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// wxSocketImpl implementation
|
||||
// ============================================================================
|
||||
|
||||
/* static */
|
||||
wxSocketImpl *wxSocketImpl::Create(wxSocketBase& wxsocket)
|
||||
{
|
||||
@@ -431,18 +439,6 @@ wxSocketImpl *wxSocketImpl::Create(wxSocketBase& wxsocket)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Disallow further read/write operations on this socket, close
|
||||
* the fd and disable all callbacks.
|
||||
*/
|
||||
void wxSocketImplUnix::Shutdown()
|
||||
{
|
||||
/* Don't allow events to fire after socket has been closed */
|
||||
DisableEvents();
|
||||
|
||||
wxSocketImpl::Shutdown();
|
||||
}
|
||||
|
||||
wxSocketError wxSocketImplUnix::GetLastError() const
|
||||
{
|
||||
switch ( errno )
|
||||
|
Reference in New Issue
Block a user