]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengine.h
Add a method for swapping user I/O handlers.
[user/henk/code/inspircd.git] / include / socketengine.h
index d8d127f8bb21fa2233d85cb4360ca8087942b4e4..9202c179dab36ff553dfc8058fa99ab3daa19266 100644 (file)
@@ -164,6 +164,12 @@ class CoreExport EventHandler : public classbase
         * registered with the SocketEngine
         */
        int fd;
+
+       /** Swaps the internals of this EventHandler with another one.
+        * @param other A EventHandler to swap internals with.
+        */
+       void SwapInternals(EventHandler& other);
+
  public:
        /** Get the current file descriptor
         * @return The file descriptor of this handler