C#用WCF通信的心跳包怎么做

2025-04-18 08:11:34
推荐回答(1个)
回答1:

// 启动线程 启动监听按钮 private void button1_Click(object sender, EventArgs e) { Thread th = new Thread(new ThreadStart(handleSc)); th.IsBackground = true; th.Start(); } private void handleSc() { int port = 8080; port = System...