資源簡介
CnReconnect自動重連好的
代碼片段和文件信息
//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
評論
共有 條評論