From ba1d557ee3e1380f5b94f3d6c2aea0984d823213 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Mar 2006 17:47:47 +0000 Subject: Added method to check if an fd is in the socketengine or not git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3667 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/socketengine.h') diff --git a/include/socketengine.h b/include/socketengine.h index d7a0f1c59..f2679811e 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -131,13 +131,15 @@ public: */ int GetRemainingFds(); - /** Delete a file descriptor f rom the engine + /** Delete a file descriptor from the engine * This function call deletes a file descriptor * from the engine, returning true if it succeeded * and false if it failed. */ bool DelFd(int fd); + bool HasFd(int fd); + /** Waits for an event. * Please note that this doesnt wait long, only * a couple of milliseconds. It returns a list -- cgit v1.2.3