From 024f972eb1ffc67bb32b2f083955199cbd6ecdde Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 29 Dec 2005 14:03:14 +0000 Subject: Added counters for MAX_DESCRIPTORS etc which allows the socket engine to refuse new fd's once you hit the OS limit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2696 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/socketengine.h b/include/socketengine.h index d02ec671a..ecb8fa96e 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -120,6 +120,16 @@ public: */ char GetType(int fd); + /** Returns the maximum number of file descriptors + * you may store in the socket engine at any one time. + */ + int GetMaxFds(); + + /** Returns the number of file descriptor slots + * which are available for storing fds. + */ + int GetRemainingFds(); + /** Delete a file descriptor f rom the engine * This function call deletes a file descriptor * from the engine, returning true if it succeeded -- cgit v1.2.3