diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 22:33:22 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-21 11:18:15 +0800 |
| commit | 45ca296a55332a4d79319f8a706f332aa8feb336 (patch) | |
| tree | 136a47b3bcd6701aac4a07ddcf0e4ebc32f180a3 /src/session.cpp | |
| parent | e970b786f9e5b9307c1113373b9c1f96eaafacf4 (diff) | |
feat(session): getIp
Diffstat (limited to 'src/session.cpp')
| -rw-r--r-- | src/session.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session.cpp b/src/session.cpp index 05d6873..9668cd8 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -204,6 +204,10 @@ const std::string &CSession::getName() const { return m_name; } +const char *CSession::getIp() const { + return m_ip; +} + void CSession::setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self) { this->self = self; } |
