1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

KeepAliveDelay removed; ping frequency doubled instead if no activity in 1.5 x ping frequency

This commit is contained in:
lidgren
2010-06-24 11:23:36 +00:00
parent 77d480e3cb
commit 51a4bfa5ea
5 changed files with 17 additions and 21 deletions

View File

@@ -63,6 +63,7 @@
this.button1.TabIndex = 2;
this.button1.Text = "Send";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//

View File

@@ -38,5 +38,12 @@ namespace ChatClient
else
Program.SettingsWindow.Show();
}
private void button1_Click(object sender, EventArgs e)
{
string txt = textBox1.Text.Trim();
Program.Input(txt);
textBox1.Text = "";
}
}
}

View File

@@ -44,6 +44,9 @@ namespace ChatClient
public static void Input(string input)
{
if (string.IsNullOrEmpty(input))
return;
if (input.ToLowerInvariant().StartsWith("connect "))
{
string host = input.Substring(8).Trim();