From b0f8b28977e59b7fbfc1ce57ee5c102b8e4e0690 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Feb 2023 11:54:05 +0100 Subject: Touch documents on read (i.e. reset timeout on read) --- connectionregistry.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'connectionregistry.cpp') diff --git a/connectionregistry.cpp b/connectionregistry.cpp index 412472d..e3c0c11 100644 --- a/connectionregistry.cpp +++ b/connectionregistry.cpp @@ -61,6 +61,16 @@ std::unordered_set::iterator ConnectionRegistry: return m_ids.at(id).end(); } +std::unordered_map::iterator ConnectionRegistry::begin() +{ + return m_connections.begin(); +} + +std::unordered_map::iterator ConnectionRegistry::end() +{ + return m_connections.end(); +} + void ConnectionRegistry::dump() const { std::cout << "Connection Registry:" << std::endl; -- cgit v1.2.3