1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 04:56:38 +02:00

Made the default socket poller use poll() because it is supported on most platforms

This commit is contained in:
Adam
2010-12-24 01:22:07 -05:00
parent a6c8a6a9f2
commit befb4b3644
3 changed files with 194 additions and 7 deletions
@@ -10,12 +10,10 @@ class SocketEngineEPoll : public SocketEngineBase
long max;
int EngineHandle;
epoll_event *events;
unsigned SocketCount;
public:
SocketEngineEPoll()
{
SocketCount = 0;
max = ulimit(4, 0);
if (max <= 0)
@@ -57,8 +55,6 @@ class SocketEngineEPoll : public SocketEngineBase
}
Sockets.insert(std::make_pair(ev.data.fd, s));
++SocketCount;
}
void DelSocket(Socket *s)
@@ -76,8 +72,6 @@ class SocketEngineEPoll : public SocketEngineBase
}
Sockets.erase(ev.data.fd);
--SocketCount;
}
void MarkWritable(Socket *s)