summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-18 12:37:19 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-18 13:54:59 +0800
commit2405f25c6b5e1c824599b8a4d76e6bda0b083849 (patch)
tree74607a16284b610f4d54545616d5949adb01bf00 /include
parentf5aacb29f5f238ae9121bf43d96ad2eba361e7b7 (diff)
internal: remove unused m_name
Diffstat (limited to 'include')
-rw-r--r--include/libsock/server/client.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/libsock/server/client.hpp b/include/libsock/server/client.hpp
index 59870ce..3ed4516 100644
--- a/include/libsock/server/client.hpp
+++ b/include/libsock/server/client.hpp
@@ -39,7 +39,6 @@ class Client {
Client(SP<Server> server = SP<Server>(pServer), SP<Clients> clients = pClients, bool track = false, bool oneShot = true);
~Client();
- const std::string &getName() const;
const std::string &getIp() const;
bool isAdmin() const;
@@ -58,7 +57,6 @@ class Client {
SP<LibSock::CFileDescriptor> m_sockfd;
sockaddr_in m_addr;
socklen_t m_addrLen = sizeof(m_addr);
- std::string m_name;
std::string m_ip;
int m_port;
bool m_track;
@@ -88,10 +86,8 @@ class Clients {
void kick(WP<Client> client, const bool kill = false, const std::string &reason = "", std::optional<std::function<std::any(const std::vector<std::pair<std::jthread, SP<Client>>>::iterator &)>> cb = std::nullopt);
void addClient(const Client &client);
- bool nameExists(const std::string &name);
void shutdownClients(std::optional<std::function<std::any(const std::vector<std::pair<std::jthread, SP<Client>>> &)>> cb = std::nullopt);
- SP<Client> getByName(const std::string &name) const;
SP<Client> getByIp(const std::string &ip) const;
std::vector<SP<Client>> getClients() const;
std::vector<SData> getDatas() const;