]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine.cpp
Add <hostchange:ports> to the m_hostchange module to implement feature in bug #363
[user/henk/code/inspircd.git] / src / socketengine.cpp
index 48f7e11bf611d7e2f05df7af0d2e2dd7260c59b7..28ba8c25215c3d2921d909f219dc8ae026d617ab 100644 (file)
@@ -91,3 +91,12 @@ std::string SocketEngine::GetName()
        return "misconfigured";
 }
 
+bool SocketEngine::BoundsCheckFd(EventHandler* eh)
+{       
+       if (!eh)
+               return false;
+       if ((eh->GetFd() < 0) || (eh->GetFd() > MAX_DESCRIPTORS))
+               return false;
+       return true;
+}
+