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

Method pushIncomingPacket

source/game/StarSystemWorldServerThread.cpp:161–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void SystemWorldServerThread::pushIncomingPacket(ConnectionId clientId, PacketPtr packet) {
162 WriteLocker locker(m_queueMutex);
163 m_incomingPacketQueue.append({std::move(clientId), std::move(packet)});
164}
165
166List<PacketPtr> SystemWorldServerThread::pullOutgoingPackets(ConnectionId clientId) {
167 WriteLocker locker(m_queueMutex);

Callers 1

packetsReceivedMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected