private void Telnet_OnDisconnected(TCPServer.MyClient myClient) { logTextBox.Invoke((MethodInvoker) delegate { if (logTextBox.Text.Length > 0) { logTextBox.AppendText(Environment.NewLine); } logTextBox.AppendText("Client : Disconnected"); }); }
private void Telnet_OnConnected(TCPServer.MyClient myClient) { logTextBox.Invoke((MethodInvoker) delegate { if (logTextBox.Text.Length > 0) { logTextBox.AppendText(Environment.NewLine); } logTextBox.AppendText("Client : " + myClient.client.Client.RemoteEndPoint + " Connected"); }); }
private void Telnet_MessageReceived(TCPServer.MyClient myClient, string message) { logTextBox.Invoke((MethodInvoker) delegate { if (message == null) { logTextBox.Clear(); } else { if (logTextBox.Text.Length > 0) { logTextBox.AppendText(Environment.NewLine); } logTextBox.AppendText(message); } }); }
private void Telnet_ErrorEvent(TCPServer.MyClient myClient, string message) { }