diff options
| author | alpine <[email protected]> | 2020-06-16 13:35:02 +0200 |
|---|---|---|
| committer | alpine <[email protected]> | 2020-06-16 13:35:02 +0200 |
| commit | 4a1762e5a6cdf995bd4ff959c17dbdef5189adea (patch) | |
| tree | 5cbd5c3bf899ce639493064005463fe0cf82a8a6 /server/src/client/client.h | |
| parent | Finished session/user id generation. (diff) | |
| download | loader-4a1762e5a6cdf995bd4ff959c17dbdef5189adea.tar.xz loader-4a1762e5a6cdf995bd4ff959c17dbdef5189adea.zip | |
Renamed uid to session id.
Diffstat (limited to 'server/src/client/client.h')
| -rw-r--r-- | server/src/client/client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/client/client.h b/server/src/client/client.h index 106b2c1..b54cd22 100644 --- a/server/src/client/client.h +++ b/server/src/client/client.h @@ -11,7 +11,7 @@ class client { time_t m_time; std::string m_ip; - std::string m_uid; + std::string m_session_id; public: client() : m_socket{-1} {}; @@ -36,10 +36,10 @@ class client { int stream(std::vector<char> &data); int read_stream(std::vector<char> &out); - void gen_uid(); + void gen_session(); int get_socket() { return m_socket; } auto get_ip() { return m_ip; } - auto get_uid() { return m_uid; } + auto get_session() { return m_session_id; } }; }; // namespace tcp
\ No newline at end of file |