]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengine.h
XHTML 1.1 spec validation and charset
[user/henk/code/inspircd.git] / include / socketengine.h
index d7a0f1c59f6003bf8a8865709a050a948ba76e9b..bbd34a30288b2403ba5a5c7700c59fabd7296c80 100644 (file)
@@ -64,7 +64,8 @@ const char X_READBIT            = 0x80;
  * settings chosen by the server admin. The current
  * version supports select, epoll and kqueue.
  */
-class SocketEngine {
+class SocketEngine : public Extensible
+{
 
        int EngineHandle;                       /* Handle to the socket engine if needed */
        int CurrentSetSize;                     /* Current number of descriptors in the engine */
@@ -131,13 +132,18 @@ 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);
 
+       /** Returns true if a socket exists in the socket
+        * engine's list.
+        */
+       bool HasFd(int fd);
+
        /** Waits for an event.
         * Please note that this doesnt wait long, only
         * a couple of milliseconds. It returns a list