From f8d06e13c68a20228665e5798ed18198b2907f25 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 25 Nov 2005 13:39:24 +0000 Subject: Removed references to connection.cpp and servers.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1948 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'include/socketengine.h') diff --git a/include/socketengine.h b/include/socketengine.h index 33dc77894..9a4610f5f 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -280,20 +280,6 @@ printf("ERROR: could not initialise listening sockets in epoll list. Shutting down.\n"); \ Exit(ERROR); \ } \ - } \ - for (int t = 0; t != SERVERportCount; t++) \ - { \ - struct epoll_event ev; \ - log(DEBUG,"epoll: Add listening server socket to events, ep=%d socket=%d",sep,me[t]->fd); \ - ev.events = EPOLLIN | EPOLLET; \ - ev.data.fd = me[t]->fd; \ - int i = epoll_ctl(sep, EPOLL_CTL_ADD, me[t]->fd, &ev); \ - if (i == -1) \ - { \ - log(DEFAULT,"main: add server listen ports, epoll_ctl failed!"); \ - printf("ERROR: could not initialise server listening sockets in epoll list. Shutting down.\n"); \ - Exit(ERROR); \ - } \ } #define kqueue_server_fill log(DEFAULT,"kqueue socket engine is enabled. Filling listen list."); \ @@ -309,22 +295,6 @@ printf("ERROR: could not initialise listening sockets in kqueue. Shutting down.\n"); \ Exit(ERROR); \ } \ - } \ - for (int t = 0; t != SERVERportCount; t++) \ - { \ - struct kevent ke; \ - if (me[t]) \ - { \ - log(DEBUG,"kqueue: Add listening SERVER socket to events, kq=%d socket=%d",skq,me[t]->fd); \ - EV_SET(&ke, me[t]->fd, EVFILT_READ, EV_ADD, 0, MaxConn, NULL); \ - int i = kevent(skq, &ke, 1, 0, 0, NULL); \ - if (i == -1) \ - { \ - log(DEFAULT,"main: add server listen ports to kqueue failed!"); \ - printf("ERROR: could not initialise listening server sockets in kqueue. Shutting down.\n"); \ - Exit(ERROR); \ - } \ - } \ } #ifdef USE_EPOLL -- cgit v1.2.3