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

Method removeAllConnections

source/game/StarUniverseConnection.cpp:243–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243List<UniverseConnection> UniverseConnectionServer::removeAllConnections() {
244 List<UniverseConnection> removedConnections;
245 RecursiveMutexLocker connectionsLocker(m_connectionsMutex);
246 for (auto connectionId : m_connections.keys())
247 removedConnections.append(removeConnection(connectionId));
248 return removedConnections;
249}
250
251void UniverseConnectionServer::sendPackets(ConnectionId clientId, List<PacketPtr> packets) {
252 RecursiveMutexLocker connectionsLocker(m_connectionsMutex);

Callers 2

~UniverseServerMethod · 0.80
TESTFunction · 0.80

Calls 2

keysMethod · 0.45
appendMethod · 0.45

Tested by 1

TESTFunction · 0.64