X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=include%2Fsocketengine.h;h=2b759dad84ef541818296ce0439b8086c7be4a8d;hb=e19674d50ad3bf8f6881677e039aac56b62a6981;hp=e54dfca976fa30f45814274a1f4c9dfbba0b0237;hpb=aa692dc1039b63deef7886e914ec499abe7facaf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/socketengine.h b/include/socketengine.h index e54dfca97..2b759dad8 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -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