git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16586
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include <sys/time.h>
#include <unistd.h>
#include <sys/time.h>
#include <unistd.h>
// ----------------------------------------------------------------------------
// wxSocketTable
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxSocketTable
// ----------------------------------------------------------------------------
wxTheSocketTable->UnregisterCallback(fd, socketType);
}
}
wxTheSocketTable->UnregisterCallback(fd, socketType);
}
}
// ----------------------------------------------------------------------------
// wxEventLoopImpl
// ----------------------------------------------------------------------------
// wxEventLoopImpl
if (wxTheSocketTable)
wxTheSocketTable->FillSets(& readset, & writeset, & highest);
if (wxTheSocketTable)
wxTheSocketTable->FillSets(& readset, & writeset, & highest);
if (select(highest+1, &readset, &writeset, NULL, & tv) == 0)
{
if (select(highest+1, &readset, &writeset, NULL, & tv) == 0)
{
if (FD_ISSET(fd, & readset))
XNextEvent((Display*) wxGetDisplay(), & event);
if (FD_ISSET(fd, & readset))
XNextEvent((Display*) wxGetDisplay(), & event);
// Check if any socket events were pending,
// and if so, call their callbacks
if (wxTheSocketTable)
wxTheSocketTable->ProcessEvents(& readset, & writeset);
// Check if any socket events were pending,
// and if so, call their callbacks
if (wxTheSocketTable)
wxTheSocketTable->ProcessEvents(& readset, & writeset);
#include "wx/unix/gsockunx.h"
/*
#include "wx/unix/gsockunx.h"
/*
- * TODO: have these in a common header instead of being repeated
+ * FIXME: have these in a common header instead of being repeated
* in evtloop.cpp and gsockx11.c
*/
* in evtloop.cpp and gsockx11.c
*/