| 226 | } |
| 227 | |
| 228 | void NetLibrary::register_client(std::shared_ptr<NetClient> client) { |
| 229 | client->localID = Random::get().alphanumeric_str(LOCALID_LEN); |
| 230 | std::scoped_lock clientListLock(clientListMutex); |
| 231 | clients.emplace_back(client); |
| 232 | } |
| 233 | |
| 234 | void NetLibrary::finish_client_registration(std::shared_ptr<NetClient> client) { |
| 235 | try { |
nothing calls this directly
no test coverage detected