public bool method_18() { bool result = true; FlashSettings flashSettings = this.Game.Settings.FlashSettings; DateTimeOffset licenseExpiration; GClass800.GEnum9 licenseState; if (!GClass800.smethod_0(flashSettings.pid, flashSettings.userID, this.Game.Dope.Key, out licenseExpiration, out licenseState, "basic")) { GClass93 socket = this.Socket; if (socket != null) { socket.Disconnect(ErrorReason.NoLicense, null, false); } result = false; } this.Game.LicenseExpiration = licenseExpiration; this.Game.LicenseState = licenseState; return(result); }
private void method_11() { if (this.commandDispatcher_1 == null) { this.commandDispatcher_1 = new CommandDispatcher(); this.commandDispatcher_1.method_1 <GClass266>(new Action <GClass266>(this.method_27)); this.commandDispatcher_1.method_1 <GClass217>(new Action <GClass217>(this.method_28)); this.commandDispatcher_1.method_1 <GClass284>(new Action <GClass284>(this.method_29)); this.commandDispatcher_1.method_1 <GClass255>(new Action <GClass255>(this.method_30)); this.commandDispatcher_1.method_1 <GClass273>(new Action <GClass273>(this.method_12)); } GameManager gameManager = this.gameManager_0; Action <GInterface0> d; if (gameManager != null) { ConnectionManager connection = gameManager.Connection; if (connection != null) { GClass93 socket = connection.Socket; if (socket != null) { GClass84 <GClass805> gclass = socket.method_5(); if (gclass != null) { if ((d = gclass.method_0()) != null) { goto IL_CC; } } } } } d = new Action <GInterface0>(this.method_7); IL_CC: if (d != new Action <GInterface0>(this.method_7)) { this.gameManager_0.Connection.Socket.method_5().method_1(new Action <GInterface0>(this.method_7)); this.method_16(); } }
public void SendMessage(GInterface0 ginterface0_0) { if (ginterface0_0 == null) { return; } Trace.WriteLine(string.Format("Sending command id={0} {1}", ginterface0_0.Id, ginterface0_0.GetType().Name)); if (!this.IsAuthenticated) { if (this.method_1((int)ginterface0_0.Id)) { GClass93 socket = this.Socket; if (socket == null) { return; } socket.method_15(ginterface0_0); return; } else { Queue <GInterface0> commandQueue = this.CommandQueue; if (commandQueue == null) { return; } commandQueue.Enqueue(ginterface0_0); return; } } else { GClass93 socket2 = this.Socket; if (socket2 == null) { return; } socket2.method_15(ginterface0_0); return; } }
private void method_12() { if (this.commandDispatcher_1 == null) { this.commandDispatcher_1 = new CommandDispatcher(); this.commandDispatcher_1.method_1 <GClass261>(new Action <GClass261>(this.method_24)); this.commandDispatcher_1.method_1 <GClass280>(new Action <GClass280>(this.method_25)); this.commandDispatcher_1.method_1 <GClass269>(new Action <GClass269>(this.method_13)); } GameManager gameManager = this.gameManager_0; Action <GInterface0> d; if (gameManager != null) { ConnectionManager connection = gameManager.Connection; if (connection != null) { GClass93 socket = connection.Socket; if (socket != null) { GClass84 <GClass854> gclass = socket.method_5(); if (gclass != null) { if ((d = gclass.method_0()) != null) { goto IL_9E; } } } } } d = new Action <GInterface0>(this.method_8); IL_9E: if (d != new Action <GInterface0>(this.method_8)) { this.gameManager_0.Connection.Socket.method_5().method_1(new Action <GInterface0>(this.method_8)); this.method_16(); } }
private void method_0(object object_0) { GClass93 socket = this.Socket; if (socket != null && socket.method_2() && (this._keepAlive || !this.IsAuthenticated)) { try { if ((!this.IsAuthenticated || this._sentPings > 0) && (DateTime.Now - this._lastKeepAlive).TotalSeconds > 10.0) { this.Socket.Disconnect(ErrorReason.Timeout, null, false); } else if (this.IsAuthenticated) { this.method_12(); } } catch { } } }