From 5f387071d339892ebed5accba92f91f997396476 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 21 Jul 2019 16:56:55 +0100 Subject: Add a method for swapping user I/O handlers. --- include/socketengine.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/socketengine.h') diff --git a/include/socketengine.h b/include/socketengine.h index d8d127f8b..9202c179d 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -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 -- cgit v1.3.1-10-gc9f91