You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 15:16:33 +09:00
File stream sample added
This commit is contained in:
@@ -49,7 +49,7 @@ namespace ChatClient
|
||||
int port;
|
||||
Int32.TryParse(textBox3.Text, out port);
|
||||
Program.Connect(textBox2.Text, port);
|
||||
button2.Text = "Shut down";
|
||||
button2.Text = "Disconnect";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace ChatClient
|
||||
Application.Idle += new EventHandler(Application_Idle);
|
||||
|
||||
Application.Run(s_form);
|
||||
|
||||
s_client.Shutdown("Bye");
|
||||
}
|
||||
|
||||
private static void Output(string text)
|
||||
@@ -87,7 +89,8 @@ namespace ChatClient
|
||||
// called by the UI
|
||||
public static void Shutdown()
|
||||
{
|
||||
s_client.Shutdown("Requested by user");
|
||||
s_client.Disconnect("Requested by user");
|
||||
// s_client.Shutdown("Requested by user");
|
||||
}
|
||||
|
||||
public static void Send(string text)
|
||||
|
||||
Reference in New Issue
Block a user