summaryrefslogtreecommitdiff
path: root/include/socketengine_epoll.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 12:15:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 12:15:03 +0000
commitd17465716790010b6e3221f9ce49272110276ccf (patch)
treed929b9c717e789d818d0eefbfe6e018974ae48f6 /include/socketengine_epoll.h
parent312d49abb008dccf9871b663decaa1bacf18c20a (diff)
Now two types of log macro, log() and ilog(). log() assumes an InspIRCd object called ServerInstance, ilog() takes an InspIRCd object as first param.
TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socketengine_epoll.h')
-rw-r--r--include/socketengine_epoll.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/socketengine_epoll.h b/include/socketengine_epoll.h
index ddbeb6f40..65d1150f7 100644
--- a/include/socketengine_epoll.h
+++ b/include/socketengine_epoll.h
@@ -27,12 +27,14 @@
#include <sys/epoll.h>
#define EP_DELAY 5
+class InspIRCd;
+
class EPollEngine : public SocketEngine
{
private:
struct epoll_event events[MAX_DESCRIPTORS]; /* Up to 64k sockets for epoll */
public:
- EPollEngine();
+ EPollEngine(InspIRCd* Instance);
virtual ~EPollEngine();
virtual bool AddFd(int fd, bool readable, char type);
virtual int GetMaxFds();
@@ -45,7 +47,7 @@ public:
class SocketEngineFactory
{
public:
- SocketEngine* Create() { return new EPollEngine(); }
+ SocketEngine* Create(InspIRCd* Instance) { return new EPollEngine(Instance); }
};
#endif