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

Method sendClientContextUpdate

source/game/StarUniverseServer.cpp:741–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void UniverseServer::sendClientContextUpdate(ServerClientContextPtr clientContext) {
742 auto clientContextData = clientContext->writeUpdate();
743 if (!clientContextData.empty())
744 m_connectionServer->sendPackets(clientContext->clientId(), {make_shared<ClientContextUpdatePacket>(clientContextData)});
745}
746
747void UniverseServer::sendClientContextUpdates() {
748 RecursiveMutexLocker locker(m_mainLock);

Callers

nothing calls this directly

Calls 4

clientIdMethod · 0.80
writeUpdateMethod · 0.45
emptyMethod · 0.45
sendPacketsMethod · 0.45

Tested by

no test coverage detected