diff options
| author | 2019-07-27 19:12:29 +0100 | |
|---|---|---|
| committer | 2019-07-27 19:12:29 +0100 | |
| commit | ada6646b6546e936f5f9d91f63f9f9fc6f651ef5 (patch) | |
| tree | 817e2f69b601d4bbf0ef720a69240050c915560d /src/inspsocket.cpp | |
| parent | Remove code relating to v3 API changes and v2 module compatibility. (diff) | |
| parent | Improve the "max connections exceeded" oper snotice. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index beafccc35..929cc8f43 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -541,3 +541,17 @@ size_t StreamSocket::getSendQSize() const } return ret; } + +void StreamSocket::SwapInternals(StreamSocket& other) +{ + if (type != other.type) + return; + + EventHandler::SwapInternals(other); + std::swap(closeonempty, other.closeonempty); + std::swap(closing, other.closing); + std::swap(error, other.error); + std::swap(iohook, other.iohook); + std::swap(recvq, other.recvq); + std::swap(sendq, other.sendq); +} |
