MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / register_client

Method register_client

include/Helpers/Networking/NetLibrary.cpp:228–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void 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
234void NetLibrary::finish_client_registration(std::shared_ptr<NetClient> client) {
235 try {

Callers

nothing calls this directly

Calls 2

alphanumeric_strMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected