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

Method pushIncomingPackets

source/game/StarWorldServerThread.cpp:135–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void WorldServerThread::pushIncomingPackets(ConnectionId clientId, List<PacketPtr> packets) {
136 RecursiveMutexLocker queueLocker(m_queueMutex);
137 m_incomingPacketQueue[clientId].appendAll(std::move(packets));
138}
139
140List<PacketPtr> WorldServerThread::pullOutgoingPackets(ConnectionId clientId) {
141 RecursiveMutexLocker queueLocker(m_queueMutex);

Callers 1

packetsReceivedMethod · 0.80

Calls 1

appendAllMethod · 0.80

Tested by

no test coverage detected