Пример #1
0
 private void Telnet_OnDisconnected(TCPServer.MyClient myClient)
 {
     logTextBox.Invoke((MethodInvoker) delegate
     {
         if (logTextBox.Text.Length > 0)
         {
             logTextBox.AppendText(Environment.NewLine);
         }
         logTextBox.AppendText("Client : Disconnected");
     });
 }
Пример #2
0
 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");
     });
 }
Пример #3
0
 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);
         }
     });
 }
Пример #4
0
 private void Telnet_ErrorEvent(TCPServer.MyClient myClient, string message)
 {
 }