summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 14:03:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 14:03:14 +0000
commit024f972eb1ffc67bb32b2f083955199cbd6ecdde (patch)
treee5d0fe90854d116e93d1ce45849e0e8586d02f89 /include/socketengine.h
parentb0cb12952a378d4d3717d3a5556325a15be1de0a (diff)
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
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h10
1 files changed, 10 insertions, 0 deletions
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