示例#1
0
        public void Write(ByteArrayReaderWriter writer)
        {
            writer.WriteASCII(Defines.NETCODE_VERSION_INFO_STR);
            writer.Write(ProtocolID);

            writer.Write(CreateTimestamp);
            writer.Write(ExpireTimestamp);
            writer.Write(ConnectTokenSequence);
            writer.Write(PrivateConnectTokenBytes);

            writer.Write((uint)ConnectServers.Length);
            for (int i = 0; i < ConnectServers.Length; i++)
            {
                ConnectServers[i].WriteData(writer);
            }

            writer.Write(ClientToServerKey);
            writer.Write(ServerToClientKey);
            writer.Write(TimeoutSeconds);
        }