示例#1
0
 private void OpenTCPToolStripMenuItem_Click(object sender, EventArgs e)
 {
     tCPServer = new TCPServer();
     if (tCPServer.startServer(IPAddress.Any, tBPort.Text.Trim()))
     {
         rtbMSG.Text += "TCP服务开启成功\n";
         getEndPoint();
     }
     else
     {
         rtbMSG.Text += "TCP服务开启失败\n";
     }
 }