1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
17 #ifndef __SOCKETENGINE__
18 #define __SOCKETENGINE__
22 #include "inspircd_config.h"
26 #include <sys/epoll.h>
30 #include <sys/types.h>
31 #include <sys/event.h>
35 const char X_LISTEN = 0;
36 const char X_ESTAB_CLIENT = 1;
37 const char X_ESTAB_MODULE = 2;
38 const char X_ESTAB_DNS = 3;
40 const char X_READBIT = 0x80;
47 fd_set wfdset, rfdset;
50 struct kevent ke_list[65535];
54 struct epoll_event events[65535];
61 bool AddFd(int fd, bool readable, char type);
64 bool Wait(std::vector<int> &fdlist);
65 std::string GetName();