diff options
author | Peter Powell <petpow@saberuk.com> | 2019-07-21 16:56:55 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-07-21 16:57:19 +0100 |
commit | 5f387071d339892ebed5accba92f91f997396476 (patch) | |
tree | c91e7f11859dc267b8c2b946f159abe28d558038 /include/users.h | |
parent | 62f6e56e158a3c147cd1395dab790f918ce2d1b4 (diff) |
Add a method for swapping user I/O handlers.
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h index dc7da40fe..94a8af9a4 100644 --- a/include/users.h +++ b/include/users.h @@ -700,6 +700,11 @@ class CoreExport UserIOHandler : public StreamSocket * @param data The data to add to the write buffer */ void AddWriteBuf(const std::string &data); + + /** Swaps the internals of this UserIOHandler with another one. + * @param other A UserIOHandler to swap internals with. + */ + void SwapInternals(UserIOHandler& other); }; typedef unsigned int already_sent_t; |