summaryrefslogtreecommitdiff
path: root/src/session.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-13 22:57:56 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:45:00 +0800
commitaa37277b893d1bfe589618665f355495082e05b6 (patch)
tree1d2be3784346ccaf211a08ad07873846d3519b4d /src/session.hpp
parentbcf30ffc53d7cf007f0bcd1ba9aca44fe2a2acde (diff)
clang-format & clang-tidy
Diffstat (limited to 'src/session.hpp')
-rw-r--r--src/session.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/session.hpp b/src/session.hpp
index d7bc11c..3571ecb 100644
--- a/src/session.hpp
+++ b/src/session.hpp
@@ -13,25 +13,24 @@ class CSession {
~CSession();
struct SRecvData {
- std::string data;
- const size_t size = 1024;
- bool good = true;
+ std::string data;
+ const size_t size = 1024;
+ bool good = true;
bool isEmpty() const;
void sanitize();
};
-
std::string getName();
- void setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self);
+ void setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self);
std::unique_ptr<SRecvData> read();
std::unique_ptr<SRecvData> read(const std::string &msg);
- 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>
- bool write(eFormatType type, std::format_string<Args...> fmt, Args &&...args);
+ template <typename... Args>
+ bool write(eFormatType type, std::format_string<Args...> fmt, Args &&...args);
void run();