1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
15 #include "socketengine.h"
17 int EventHandler::GetFd()
22 void EventHandler::SetFd(int FD)
27 bool EventHandler::Readable()
32 bool EventHandler::Writeable()
37 void SocketEngine::WantWrite(EventHandler* eh)
41 SocketEngine::SocketEngine(InspIRCd* Instance) : ServerInstance(Instance)
43 memset(ref, 0, sizeof(ref));
46 SocketEngine::~SocketEngine()
50 bool SocketEngine::AddFd(EventHandler* eh)
55 bool SocketEngine::HasFd(int fd)
57 if ((fd < 0) || (fd > MAX_DESCRIPTORS))
62 EventHandler* SocketEngine::GetRef(int fd)
64 if ((fd < 0) || (fd > MAX_DESCRIPTORS))
69 bool SocketEngine::DelFd(EventHandler* eh, bool force)
74 int SocketEngine::GetMaxFds()
79 int SocketEngine::GetRemainingFds()
84 int SocketEngine::DispatchEvents()
89 std::string SocketEngine::GetName()
91 return "misconfigured";