/// <summary> /// Initializes a new instance of the <see cref="XFKeepAlivePacket"/> class. /// </summary> /// <param name="protocolInstance"></param> /// <param name="encodingInstance">The encoding instance.</param> public XFKeepAlivePacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, System.Text.Encoding encodingInstance) : base(protocolInstance, encodingInstance) { this.pMessageID = 13; addAttribute(new Structure.XFPacketAttribute(encodingInstance, "value", new Structure.ValueTypes.XFInt32(encodingInstance, 0))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "stats", new Structure.ValueTypes.XFList(encodingInstance, new List<Structure.XFPacketValue>(), (new Structure.ValueTypes.XFInt32()).IntendedValueType))); }
public XFClientInformationPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, System.Text.Encoding encodingInstance) : base(protocolInstance, encodingInstance) { pMessageID = BitConverter.ToInt16(new Byte[] { 0x10, 0x00 }, 0); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "lang", new Structure.ValueTypes.XFString(encodingInstance, "de"))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "skin", new Structure.ValueTypes.XFString(encodingInstance, "Combat"))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "theme", new Structure.ValueTypes.XFString(encodingInstance, "default"))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "partner", new Structure.ValueTypes.XFString(encodingInstance, ""))); }
public XFLoginRequestPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, System.Text.Encoding encodingInstance, String username, String password, Packets.LoginSequence.XFServersSaltPacket serversSaltPacket) : base(protocolInstance, encodingInstance) { pMessageID = 1; string pw = calculatePassword(username, password, serversSaltPacket); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "name", new Structure.ValueTypes.XFString(encodingInstance, username))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "password", new Structure.ValueTypes.XFString(encodingInstance, pw))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "flags", new Structure.ValueTypes.XFInt32(encodingInstance, 0))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "sid", new Structure.ValueTypes.XFSessionID(encodingInstance, Structure.ValueTypes.XFSessionID.Zero))); }
public XFNetworkInfoPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { pMessageID = 17; addAttribute(new Structure.XFPacketAttribute(encodingInstance, "conn", new Structure.ValueTypes.XFInt32(encodingInstance, 12))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "nat", new Structure.ValueTypes.XFInt32(encodingInstance, 1))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "sec", new Structure.ValueTypes.XFInt32(encodingInstance, 0))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "clientip", new Structure.ValueTypes.XFInt32(encodingInstance, ipToInt32(protocolInstance.Socket.Client.LocalEndPoint)))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "naterr", new Structure.ValueTypes.XFInt32(encodingInstance, 0))); addAttribute(new Structure.XFPacketAttribute(encodingInstance, "upnpinfo", new Structure.ValueTypes.XFString(encodingInstance, ""))); }
/// <summary> /// Initializes a new instance of the <see cref="XFVersionPacket"/> class. /// </summary> /// <param name="ClientVersion">The client version.</param> public XFVersionPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, System.Text.Encoding encodingInstance, Int32 clientVersion) : base(protocolInstance, encodingInstance) { this.pMessageID = BitConverter.ToInt16(new Byte[] { 0x03, 0x00 }, 0); pClientVersion = clientVersion; Structure.XFPacketAttribute version = new Structure.XFPacketAttribute(encodingInstance); version.Name = "version"; version.Value = new Structure.ValueTypes.XFInt32(encodingInstance, clientVersion); this.addAttribute(version); }
/// <summary> /// Initializes a new instance of the <see cref="XFLoginFailedPacket"/> class. /// </summary> /// <param name="protocolInstance">The protocol instance.</param> /// <param name="encodingInstance">The encoding instance.</param> /// <param name="incomingPacket">The incoming packet.</param> public XFLoginFailedPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { // TODO: Complete member initialization //this.pParentPacket = incomingPacket; }
/// <summary> /// Initializes a new instance of the <see cref="XFLoginSucceededPacket"/> class. /// </summary> /// <param name="protocolInstance">The protocol instance.</param> /// <param name="encodingInstance">The encoding instance.</param> /// <param name="basePacket">The base packet.</param> public XFLoginSucceededPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { }
/// <summary> /// Initializes a new instance of the <see cref="XFPacket"/> class. /// </summary> /// <param name="encodingInstance">The encoding instance.</param> public XFPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, System.Text.Encoding encodingInstance) { pEncodingInstance = encodingInstance; _networkProvider = protocolInstance; }
public XFContactList(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { }
public XFContactOnline(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { overrideParsing = true; }
public XFUnkownPacket(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { }
public XFKeepAliveRequest(PlgXfire.Networking.NetworkProviders.XfireNetworkProvider protocolInstance, Encoding encodingInstance) : base(protocolInstance, encodingInstance) { }