示例#1
0
        public override SteamPacket GetReply()
        {
            if (this.ReceivePacket(1440) <= 0)
            {
                throw new RCONBanException();
            }

            int packetSize = this.bufferReader.ReadInt32() + 4;

            if (packetSize > 1440)
            {
                throw new Exception("Invalid packet size");
            }

            return(RCONPacket.CreatePacket(buffer));
        }