You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 06:36:30 +09:00
KeepAliveDelay removed; ping frequency doubled instead if no activity in 1.5 x ping frequency
This commit is contained in:
1
Samples/ChatClient/Form1.Designer.cs
generated
1
Samples/ChatClient/Form1.Designer.cs
generated
@@ -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
|
||||
//
|
||||
|
||||
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user