diff options
Diffstat (limited to 'src/sessionManager.hpp')
| -rw-r--r-- | src/sessionManager.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sessionManager.hpp b/src/sessionManager.hpp index 8e02a7d..e969bd9 100644 --- a/src/sessionManager.hpp +++ b/src/sessionManager.hpp @@ -12,19 +12,19 @@ class CSessionManager { CSessionManager(); ~CSessionManager(); - std::pair<std::jthread, std::shared_ptr<CSession>> *newSession(); + void newSession(); void run(); void broadcast(const std::string &msg) const; - void kick(CSession *session, const bool kill = false, const std::string &reason = ""); - void kick(std::pair<std::jthread, std::shared_ptr<CSession>> *session, const bool kill = false, const std::string &reason = ""); + void kick(std::shared_ptr<CSession> session, const bool kill = false, const std::string &reason = ""); + void kick(std::unique_ptr<std::pair<std::jthread, std::shared_ptr<CSession>>> session, const bool kill = false, const std::string &reason = ""); void addSession(const CSession &session); bool nameExists(const std::string &name); void shutdownSessions(); - CSession *getByName(const std::string &name) const; - CSession *getByIp(const std::string &ip) const; + std::shared_ptr<CSession> getByName(const std::string &name) const; + std::shared_ptr<CSession> getByIp(const std::string &ip) const; std::vector<std::shared_ptr<CSession>> getSessions() const; private: |
