Add support of epoll and kqueue into Socket::select and SocketImpl::poll

This commit is contained in:
Sergey N. Yatskevich
2010-03-31 10:47:46 +00:00
parent ee893eb764
commit acba77b3ce
3 changed files with 471 additions and 5 deletions

View File

@@ -184,6 +184,15 @@
#define POCO_ARCH_BIG_ENDIAN 1
#endif
//TODO: need to determine Linux > 2.6.0
#if (POCO_OS == POCO_OS_LINUX)
#define POCO_HAVE_FD_EPOLL 1
#endif
//TODO: need to determine which of FreeBSD have kqueue
#if (POCO_OS == POCO_OS_FREE_BSD)
#define POCO_HAVE_FD_KQUEUE 1
#endif
//TODO: determine all platforms having poll() call
#if (POCO_OS == POCO_OS_SOLARIS) || (POCO_OS == POCO_OS_LINUX)