Esempio n. 1
0
 public void ToStream(ref ByteOutputStream writer)
 {
     Header.Type = (byte)SQPMessageType.QueryResponse;
     Header.ToStream(ref writer);
     writer.WriteUInt16_NBO(Version);
     writer.WriteUInt8(CurrentPacket);
     writer.WriteUInt8(LastPacket);
     writer.WriteUInt16_NBO(Length);
 }
Esempio n. 2
0
            public void ToStream(ref ByteOutputStream writer)
            {
                writer.WriteUInt16_NBO(CurrentPlayers);
                writer.WriteUInt16_NBO(MaxPlayers);

                writer.WriteString(ServerName, encoding);
                writer.WriteString(GameType, encoding);
                writer.WriteString(BuildId, encoding);
                writer.WriteString(Map, encoding);

                writer.WriteUInt16_NBO(Port);
            }
Esempio n. 3
0
        public void ToStream(ref ByteOutputStream writer)
        {
            Header.Type = (byte)SQPMessageType.QueryRequest;

            Header.ToStream(ref writer);
            writer.WriteUInt16_NBO(Version);
            writer.WriteUInt8(RequestedChunks);
        }