summaryrefslogtreecommitdiffhomepage
path: root/connectionregistry.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-12 11:54:05 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-12 11:54:05 +0100
commitb0f8b28977e59b7fbfc1ce57ee5c102b8e4e0690 (patch)
tree926eb8dbd140d84ab0238ce7d671673056f12f56 /connectionregistry.h
parent7d5ca5cebfe3453aaa3c649bbc3e771e6d636ac9 (diff)
Touch documents on read (i.e. reset timeout on read)
Diffstat (limited to 'connectionregistry.h')
-rw-r--r--connectionregistry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/connectionregistry.h b/connectionregistry.h
index 25bd3b6..c3c6884 100644
--- a/connectionregistry.h
+++ b/connectionregistry.h
@@ -22,9 +22,14 @@ public:
void addConnection(connection c);
void delConnection(connection c);
+ // iterate over all connections associated with a certain id
std::unordered_set<connection>::iterator begin(const std::string& id);
std::unordered_set<connection>::iterator end(const std::string& id);
+ // iterate over all connections
+ std::unordered_map<connection, std::string>::iterator begin();
+ std::unordered_map<connection, std::string>::iterator end();
+
void dump() const;
size_t number_of_connections() const;