summaryrefslogtreecommitdiff
path: root/src/sessionManager.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-20 22:24:23 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-21 11:18:14 +0800
commite970b786f9e5b9307c1113373b9c1f96eaafacf4 (patch)
tree225ceb78256f76adbb6779b06b52389e415460e3 /src/sessionManager.hpp
parentd2afc5f872b98e8e8f20307221bf13e7dafaac4e (diff)
feat(sessionManager): getSessions
Diffstat (limited to 'src/sessionManager.hpp')
-rw-r--r--src/sessionManager.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sessionManager.hpp b/src/sessionManager.hpp
index 70faa58..b33a39e 100644
--- a/src/sessionManager.hpp
+++ b/src/sessionManager.hpp
@@ -24,6 +24,7 @@ class CSessionManager {
CSession *getByName(const std::string &name) const;
CSession *getByIp(const char m_ip[INET_ADDRSTRLEN]) const;
+ std::vector<std::shared_ptr<CSession>> getSessions() const;
private:
void broadcastChat(const std::string &msg, const std::string &username) const;