#ifdef __WATCOMC__
#include <types.h>
#include <sys/ioctl.h>
+ #include <sys/time.h>
#include <sys/select.h>
+ #include <tcpustd.h>
#else
#include <sys/types.h>
#endif
virtual bool RegisterFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL);
virtual bool ModifyFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL);
virtual bool UnregisterFD(int fd);
- virtual void Dispatch(int timeout = TIMEOUT_INFINITE);
+ virtual bool Dispatch(int timeout = TIMEOUT_INFINITE);
private:
// common part of RegisterFD() and ModifyFD()
bool DoUpdateFDAndHandler(int fd, wxFDIOHandler *handler, int flags);
- // call the handlers for the fds present in the given sets
- void ProcessSets(const wxSelectSets& sets);
+ // call the handlers for the fds present in the given sets, return true if
+ // we called any handlers
+ bool ProcessSets(const wxSelectSets& sets);
// helper of ProcessSets(): call the handler if its fd is in the set
void DoProcessFD(int fd, const fd_set& fds, wxFDIOHandler *handler,