return;
}
Program.order_string = "RESTART";
rev_thread.send_monitor_to_client(comboBox1.Text, textBox1.Text);
}
private void button7_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
MessageBox.Show("被监控的客户端IP地址不允许空", "确信正确", MessageBoxButtons.OK);
return;
}
Program.order_string = "NO LINK";
rev_thread.send_monitor_to_client(comboBox1.Text, textBox1.Text);
}
private void button8_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
MessageBox.Show("被监控的客户端IP地址不允许空", "确信正确", MessageBoxButtons.OK );
return;
}
Program.order_string = "LOGOUT";
rev_thread.send_monitor_to_client(comboBox1.Text, textBox1.Text);
}
1、、客户端接收线程部分程序代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;//用于处理文本的
using System.Threading;
|