more fixes for using wxSocket in console applications (patch 1756260)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -82,7 +82,8 @@ wxEpollDispatcher *wxEpollDispatcher::Create()
|
||||
wxLogSysError(_("Failed to create epoll descriptor"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
wxLogTrace(wxEpollDispatcher_Trace,
|
||||
_T("Epoll fd %d created"), epollDescriptor);
|
||||
return new wxEpollDispatcher(epollDescriptor);
|
||||
}
|
||||
|
||||
@@ -115,6 +116,8 @@ bool wxEpollDispatcher::RegisterFD(int fd, wxFDIOHandler* handler, int flags)
|
||||
|
||||
return false;
|
||||
}
|
||||
wxLogTrace(wxEpollDispatcher_Trace,
|
||||
_T("Added fd %d (handler %p) to epoll %d"), fd, handler, m_epollDescriptor);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -134,6 +137,8 @@ bool wxEpollDispatcher::ModifyFD(int fd, wxFDIOHandler* handler, int flags)
|
||||
return false;
|
||||
}
|
||||
|
||||
wxLogTrace(wxEpollDispatcher_Trace,
|
||||
_T("Modified fd %d (handler: %p) on epoll %d"), fd, handler, m_epollDescriptor);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -148,7 +153,8 @@ bool wxEpollDispatcher::UnregisterFD(int fd)
|
||||
wxLogSysError(_("Failed to unregister descriptor %d from epoll descriptor %d"),
|
||||
fd, m_epollDescriptor);
|
||||
}
|
||||
|
||||
wxLogTrace(wxEpollDispatcher_Trace,
|
||||
_T("removed fd %d from %d"), fd, m_epollDescriptor);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user