예제 #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)
 {
 }