]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengine.h
Add a pair of colons which should fix some KILL messages being dropped and fix some...
[user/henk/code/inspircd.git] / include / socketengine.h
index ce701beff4a14ac3f510737ecc42bc19c2467987..e502a8c04cddb52544952f5300c2d2545ff8a07d 100644 (file)
@@ -132,25 +132,6 @@ class CoreExport EventHandler : public Extensible
         * and EVENT_WRITE for write events.
         */
        virtual void HandleEvent(EventType et, int errornum = 0) = 0;
-
-#ifdef WINDOWS
-
-       /** "Fake" file descriptor. This is windows-specific.
-        */
-       int m_internalFd;
-
-       /** Pointer to read event. We delete this so the buffer can't be used
-        * after the socket is deleted, and so it doesn't leak memory
-        */
-       void* m_readEvent;
-       /** Pointer to a write event.
-        */
-       void* m_writeEvent;
-       /** Pointer to an accept event.
-        */
-       void* m_acceptEvent;
-
-#endif
 };
 
 /** Provides basic file-descriptor-based I/O support.
@@ -290,6 +271,12 @@ public:
         * @return The socket engine name
         */
        virtual std::string GetName();
+
+       /** Returns true if the file descriptors in the
+        * given event handler are within sensible ranges
+        * which can be handled by the socket engine.
+        */
+       virtual bool BoundsCheckFd(EventHandler* eh);
 };
 
 #endif