MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / clientIdsAndCreationTime

Method clientIdsAndCreationTime

source/game/StarUniverseServer.cpp:181–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181List<pair<ConnectionId, int64_t>> UniverseServer::clientIdsAndCreationTime() const {
182 List<pair<ConnectionId, int64_t>> result;
183 ReadLocker clientsLocker(m_clientsLock);
184 result.reserve(m_clients.size());
185 for (auto& pair : m_clients)
186 result.emplaceAppend(pair.first, pair.second->creationTime());
187 return result;
188}
189
190size_t UniverseServer::numberOfClients() const {
191 ReadLocker clientsLocker(m_clientsLock);

Callers 1

buildPlayerResponseMethod · 0.80

Calls 4

emplaceAppendMethod · 0.80
creationTimeMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected