while (true) {
if (update) {
this.update(updateTime);
}
NetworkPacket packet = this.getReceivedPacketCode(code);
if (packet != null) {
// packet arrived!
packet.consume(); // since this unique packet, the packet must
// be the right packet
// we simply consume it, to make everything much more easy
return packet;
}