![]() |
R-Type
2
Doom but in better
|
Tracks (ip::udp::endpoint)->clientId and allows lookup in reverse. More...
#include <client_manager.hpp>
Public Member Functions | |
uint32_t | resolveClientID (const asio::ip::udp::endpoint &ep) |
void | removeClient (const asio::ip::udp::endpoint &ep) |
asio::ip::udp::endpoint | getEndpointForId (uint32_t clientId) |
Returns the endpoint for a given clientId if known, else a default-constructed endpoint. | |
Tracks (ip::udp::endpoint)->clientId and allows lookup in reverse.
Definition at line 11 of file client_manager.hpp.
asio::ip::udp::endpoint ClientManager::getEndpointForId | ( | uint32_t | clientId | ) |
Returns the endpoint for a given clientId if known, else a default-constructed endpoint.
Definition at line 26 of file client_manager.cpp.
void ClientManager::removeClient | ( | const asio::ip::udp::endpoint & | ep | ) |
Definition at line 16 of file client_manager.cpp.
uint32_t ClientManager::resolveClientID | ( | const asio::ip::udp::endpoint & | ep | ) |
Definition at line 3 of file client_manager.cpp.