diff options
Diffstat (limited to 'src/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index dd5fe2e7..723d55de 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -37,10 +37,6 @@ #include "common.h" -#ifdef HAVE_EPOLL -# include <sys/epoll.h> -#endif // HAVE_EPOLL - #include <string> #include <cstdlib> #include <utility> @@ -78,28 +74,6 @@ private: // socket endpoint descriptor sock_t sockfd; -#ifdef HAVE_EPOLL - - // file descriptor used for epoll - int _epfd; - - struct epoll_event _epEvent; - -#endif // HAVE_EPOLL - -#ifdef HAVE_PORT_ASSOCIATE - int _portfd; -#endif // HAVE_PORT_ASSOCIATE - - enum PollMethod { - POLL_METHOD_EPOLL, - POLL_METHOD_PORT, - POLL_METHOD_POLL, - POLL_METHOD_SELECT - }; - - static PollMethod _pollMethod; - static int _protocolFamily; static std::vector<std::pair<struct sockaddr_storage, socklen_t> > _bindAddrs; @@ -138,13 +112,6 @@ private: void bind(const struct sockaddr* addr, socklen_t addrlen); -#ifdef HAVE_EPOLL - void initEPOLL(); -#endif // HAVE_EPOLL -#ifdef HAVE_PORT_ASSOCIATE - void initPort(); -#endif // HAVE_PORT_ASSOCIATE - void setSockOpt(int level, int optname, void* optval, socklen_t optlen); SocketCore(sock_t sockfd, int sockType); @@ -365,17 +332,6 @@ public: */ bool wantWrite() const; -#ifdef HAVE_EPOLL - static void useEpoll(); -#endif // HAVE_EPOLL -#ifdef HAVE_PORT_ASSOCIATE - static void usePort(); -#endif // HAVE_PORT_ASSOCIATE -#ifdef HAVE_POLL - static void usePoll(); -#endif // HAVE_POLL - static void useSelect(); - #ifdef ENABLE_SSL static void setTLSContext(const SharedHandle<TLSContext>& tlsContext); #endif // ENABLE_SSL |
