private ClientInformation(PacketIn packet) { try { ProtocolVersion = packet.ReadByte(); ushort num = packet.ReadUInt16(); if (packet.RemainingLength != num) { Log.Warn(WCell_Core.Auth_Logon_with_invalid_length, num, packet.RemainingLength); } _clientInstallationType = ClientTypeUtility.Lookup(packet.ReadFourCC()); Version = new ClientVersion(packet.ReadBytes(5)); Architecture = packet.ReadFourCC().TrimEnd(new char[1]); OS = packet.ReadFourCC().TrimEnd(new char[1]); _locale = ClientLocaleUtility.Lookup(packet.ReadFourCC()); TimeZone = BitConverter.ToUInt32(packet.ReadBytes(4), 0); IPAddress = new XmlIPAddress(packet.ReadBytes(4)); Log.Info(WCell_Core.ClientInformationFourCCs, (object)ProtocolVersion, (object)ClientInstallationType, (object)Version, (object)Architecture, (object)OS, (object)Locale, (object)TimeZone, (object)IPAddress); } catch { } }
private ClientInformation(PacketIn packet) { try { ProtocolVersion = packet.ReadByte(); var claimedRemainingLength = packet.ReadUInt16(); if (packet.RemainingLength != claimedRemainingLength) { Log.Warn(WCell_Core.Auth_Logon_with_invalid_length, claimedRemainingLength, packet.RemainingLength); } var clientInstallationType = packet.ReadFourCC(); _clientInstallationType = ClientTypeUtility.Lookup(clientInstallationType); Version = new ClientVersion(packet.ReadBytes(5)); Architecture = packet.ReadFourCC().TrimEnd('\0'); OS = packet.ReadFourCC().TrimEnd('\0'); var locale = packet.ReadFourCC(); _locale = ClientLocaleUtility.Lookup(locale); TimeZone = BitConverter.ToUInt32(packet.ReadBytes(4), 0); IPAddress = new XmlIPAddress(packet.ReadBytes(4)); Log.Info(WCell_Core.ClientInformationFourCCs, ProtocolVersion, ClientInstallationType, Version, Architecture, OS, Locale, TimeZone, IPAddress); } catch { } }
public SystemInformation() { m_Operating = OperatingSystem.Win; m_architecture = ProcessorArch.x86; Locale = "enUS"; TimeZone = 0x258; IPAddress = new XmlIPAddress(System.Net.IPAddress.Loopback); }
public ClientInformation() { _operatingSys = Constants.OperatingSystem.Win; _architecture = ProcessorArchitecture.x86; Locale = ClientLocale.English; TimeZone = 600U; IPAddress = new XmlIPAddress(System.Net.IPAddress.Loopback); }