diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-13 22:56:37 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:45:00 +0800 |
| commit | bcf30ffc53d7cf007f0bcd1ba9aca44fe2a2acde (patch) | |
| tree | fa0fd197c1820cdd832182b51a64bd0d7b808fb5 /src/session.hpp | |
| parent | b000ae9e41b8699d1c7d6eefa0441ee05c970d25 (diff) | |
session(SRecvData::data): use std::string instead of char*
Diffstat (limited to 'src/session.hpp')
| -rw-r--r-- | src/session.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.hpp b/src/session.hpp index 77687f9..d7bc11c 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -14,9 +14,14 @@ class CSession { struct SRecvData { 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); |
