bool wxSelectDispatcher::RegisterFD(int fd, wxFDIOHandler *handler, int flags)
{
- if ( !wxFDIODispatcher::RegisterFD(fd, handler, flags) )
+ if ( !wxMappedFDIODispatcher::RegisterFD(fd, handler, flags) )
return false;
if ( !m_sets.SetFD(fd, flags) )
bool wxSelectDispatcher::ModifyFD(int fd, wxFDIOHandler *handler, int flags)
{
- if ( !wxFDIODispatcher::ModifyFD(fd, handler, flags) )
+ if ( !wxMappedFDIODispatcher::ModifyFD(fd, handler, flags) )
return false;
wxASSERT_MSG( fd <= m_maxFD, _T("logic error: registered fd > m_maxFD?") );
return m_sets.SetFD(fd, flags);
}
-wxFDIOHandler *wxSelectDispatcher::UnregisterFD(int fd, int flags)
+bool wxSelectDispatcher::UnregisterFD(int fd, int flags)
{
- wxFDIOHandler * const handler = wxFDIODispatcher::UnregisterFD(fd, flags);
-
m_sets.ClearFD(fd, flags);
// remove the handler if we don't need it any more
}
}
- return handler;
+ return true;
}
void wxSelectDispatcher::ProcessSets(const wxSelectSets& sets)