]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengine.h
Add HasFd to EventHandler and switch code to use it.
[user/henk/code/inspircd.git] / include / socketengine.h
index e54dfca976fa30f45814274a1f4c9dfbba0b0237..2b759dad84ef541818296ce0439b8086c7be4a8d 100644 (file)
@@ -182,6 +182,9 @@ class CoreExport EventHandler : public classbase
         */
        inline int GetFd() const { return fd; }
 
+       /** Checks if this event handler has a fd associated with it. */
+       inline bool HasFd() const { return fd >= 0; }
+
        inline int GetEventMask() const { return event_mask; }
 
        /** Set a new file desciptor