public static void HandleUpdateKeyPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var ukPacket = packet as UpdateKeyPacket; client.Client.NetworkManager.UpdateCiphers((ulong)client.Client.Seed, ukPacket.Key); client.Server.NetworkManager.UpdateCiphers((ulong)client.Client.Seed, ukPacket.Key); }
public static void HandleOwnHomeDataPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var ohPacket = packet as OwnHomeDataPacket; client.Client.Username = ohPacket.Avatar.Username; client.Client.UserID = ohPacket.UserID; client.Client.Home = ohPacket.Home; }
public static void HandleUpdateKeyPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var ukPacket = packet as UpdateKeyPacket; client.Client.NetworkManager.UpdateCiphers((ulong)client.Client.Seed, ukPacket.Key); client.Server.NetworkManager.UpdateCiphers((ulong)client.Client.Seed, ukPacket.Key); }
public static void HandleLoginSuccessPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var lsPacket = packet as LoginSuccessPacket; client.Client.UserID = lsPacket.UserID; client.Client.UserToken = lsPacket.UserToken; client.Client.LoggedIn = true; }
public static void HandleOwnHomeDataPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var ohPacket = packet as OwnHomeDataPacket; client.Client.Username = ohPacket.Avatar.Username; client.Client.UserID = ohPacket.UserID; client.Client.Home = ohPacket.Home; }
public static void HandleLoginSuccessPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var lsPacket = packet as LoginSuccessPacket; client.Client.UserID = lsPacket.UserID; client.Client.UserToken = lsPacket.UserToken; client.Client.LoggedIn = true; }
public static void HandleLoginRequestPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var lrPacket = packet as LoginRequestPacket; client.Start(new TcpClient(proxyServer.ServerAddress, proxyServer.ServerPort).Client); client.Client.Seed = lrPacket.Seed; client.Client.UserID = lrPacket.UserID; client.Client.UserToken = lrPacket.UserToken; client.Client.FingerprintHash = lrPacket.FingerprintHash; }
public static void HandleLoginRequestPacket(CoCProxy proxyServer, CoCProxyClient client, IPacket packet) { var lrPacket = packet as LoginRequestPacket; client.Start(new TcpClient(proxyServer.ServerAddress, proxyServer.ServerPort).Client); client.Client.Seed = lrPacket.Seed; client.Client.UserID = lrPacket.UserID; client.Client.UserToken = lrPacket.UserToken; client.Client.FingerprintHash = lrPacket.FingerprintHash; }