-
大小: 0.38M文件類型: .7z金幣: 1下載: 0 次發(fā)布日期: 2020-12-14
- 語(yǔ)言: C#
- 標(biāo)簽: c??t??自動(dòng)重連??
資源簡(jiǎn)介
CnReconnect自動(dòng)重連好的
代碼片段和文件信息
//www.networkcomms.cn??
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?NetworkCommsDotNet;
using?DPSbase;
using?System.Net;
using?System.Threading;
namespace?AppClient
{
????public?partial?class?Form1?:?Form
????{
????????//連接信息類
????????public?ConnectionInfo?connnectionInfo?=?null;
????????//連接類
????????Connection?connection;
????????public?Form1()
????????{
????????????InitializeComponent();
??????????
????????}
????????//在窗體上顯示新信息
????????void?Form_ConnectionStatusNotify(object?sender?StringEventArgs?e)
????????{
????????????if?(this.InvokeRequired)
????????????{
????????????????this.Invoke(new?EventHandler
評(píng)論
共有 條評(píng)論