MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_connected_clients()

std::vector< ClientInfo > Lila::Server::get_connected_clients ( ) const

Gets a list of all currently connected clients.

Returns
Vector of ClientInfo structures

Definition at line 452 of file Server.cpp.

453{
454 std::shared_lock lock(m_clients_mutex);
455 return m_connected_clients | std::views::values | std::ranges::to<std::vector>();
456}
std::shared_mutex m_clients_mutex
Mutex for client map.
Definition Server.hpp:173
std::unordered_map< int, ClientInfo > m_connected_clients
Map of connected clients.
Definition Server.hpp:174

References m_clients_mutex, and m_connected_clients.