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

Method receivePackets

source/game/StarNetPacketSocket.cpp:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113List<PacketPtr> LocalPacketSocket::receivePackets() {
114 MutexLocker locker(m_incomingPipe->mutex);
115 List<PacketPtr> packets;
116 packets.appendAll(take(m_incomingPipe->queue));
117 return packets;
118}
119
120bool LocalPacketSocket::sentPacketsPending() const {
121 return false;

Callers 3

receiveMethod · 0.80
receiveAnyMethod · 0.80

Calls 15

takeFunction · 0.85
uncompressDataFunction · 0.85
createPacketFunction · 0.85
appendAllMethod · 0.80
readVlqIMethod · 0.80
remainingMethod · 0.80
setCompressionModeMethod · 0.80
trimLeftMethod · 0.80
formatFunction · 0.50
outputExceptionFunction · 0.50
atEndMethod · 0.45

Tested by

no test coverage detected