diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-06-13 20:20:27 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-06-13 20:23:09 +0800 |
| commit | da0f943bf34341c15763bc55b6d04ff836e5acf1 (patch) | |
| tree | c6fd62b063061c67d85d99f85e7b67c76754e6ef /src/core/session.hpp | |
| parent | 8ee8e55ff2b085762dad5ab41269448e7a91757f (diff) | |
style: clang-format
Diffstat (limited to 'src/core/session.hpp')
| -rw-r--r-- | src/core/session.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/session.hpp b/src/core/session.hpp index 9a953fc..5ca193c 100644 --- a/src/core/session.hpp +++ b/src/core/session.hpp @@ -1,10 +1,10 @@ #pragma once +#include "../debug/format.hpp" #include "../misc/FileDescriptor.hpp" +#include "../misc/memory.hpp" #include "chatManager.hpp" -#include "../debug/format.hpp" #include <format> -#include "../misc/memory.hpp" #include <netinet/in.h> #include <optional> #include <string> @@ -33,7 +33,7 @@ class CSession { UP<SRecvData> read(); UP<SRecvData> read(const std::string &msg, bool bypassDeaf = false); - bool write(const std::string &msg); + bool write(const std::string &msg); template <typename... Args> bool write(std::format_string<Args...> fmt, Args &&...args); template <typename... Args> @@ -57,14 +57,14 @@ class CSession { WRITE }; - WP<CSession> self; + WP<CSession> self; SP<CFileDescriptor> m_sockfd; - sockaddr_in m_addr; - socklen_t m_addrLen = sizeof(m_addr); - std::string m_name; - std::string m_ip; - int m_port; - bool m_isAdmin = false; + sockaddr_in m_addr; + socklen_t m_addrLen = sizeof(m_addr); + std::string m_name; + std::string m_ip; + int m_port; + bool m_isAdmin = false; std::optional<std::string> m_szReading = std::nullopt; bool m_bMuted = false; |
