diff options
Diffstat (limited to 'src/session.hpp')
| -rw-r--r-- | src/session.hpp | 15 |
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(); |
