summaryrefslogtreecommitdiff
path: root/include/libsock
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-19 16:39:27 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-19 16:39:27 +0800
commitb3a3e73aaefa39e052e53f9f42c6d0e2f7e1bb9b (patch)
tree5542b11d2cee950ba91ee9bce5c39bc4e4a4d7b9 /include/libsock
parent35216c30aea2f85966bb59999ad7293726b5cacb (diff)
fixup! internal: seperate client and clientmanager header
Diffstat (limited to 'include/libsock')
-rw-r--r--include/libsock/server/clients.hpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/libsock/server/clients.hpp b/include/libsock/server/clients.hpp
index 9b94127..ba0b40d 100644
--- a/include/libsock/server/clients.hpp
+++ b/include/libsock/server/clients.hpp
@@ -22,13 +22,10 @@ class Clients {
Clients();
~Clients();
- WP<Client> newClient(
- std::optional<std::function<std::any(WP<Client>)>> cb = std::nullopt
- );
+ WP<Client> newClient(std::optional<std::function<std::any(WP<Client>)>> cb = std::nullopt);
- void broadcast(const std::string &msg,
- std::optional<WP<Client>> self = std::nullopt); // second param only specified when we
- // want to exclude the sender
+ void broadcast(const std::string &msg, std::optional<WP<Client>> self = std::nullopt); // second param only specified when we
+ // want to exclude the sender
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);