lib/SteamCondenser/Servers/Sockets/MasterServerSocket.php
public function getReply() {
        $this->receivePacket(1500);

        if($this->buffer->getLong() != -1) {
            throw new PacketFormatException("Master query response has wrong packet header.");
        }

        $packet = SteamPacketFactory::getPacketFromData($this->buffer->get());

        $this->logger->debug("Received reply of type \"" . get_class($packet) . "\"");

        return $packet;
    }
public function getReply() {
        $this->receivePacket(1500);

        if($this->buffer->getLong() != -1) {
            throw new PacketFormatException("Master query response has wrong packet header.");
        }

        $packet = SteamPacketFactory::getPacketFromData($this->buffer->get());

        $this->logger->debug("Received reply of type \"" . get_class($packet) . "\"");

        return $packet;
    }
Reads a single packet from the socket

@return SteamPacket The packet replied from the server
@throws PacketFormatException if the packet has the wrong format