资源介绍
c# tcp通信源代码 实现网络通信
try
{
server = TxStart.startServer(int.Parse(portt.Text));
server.AcceptString += new TxDelegate(acceptString);
server.Connect += new TxDelegate(connect);
server.dateSuccess += new TxDelegate(dateSuccess);
server.Disconnection += new TxDelegate(disconnection);
server.EngineClose += new TxDelegate(engineClose);
server.EngineLost += new TxDelegate(engineLost);
server.StartEngine();
this.button5.Enabled = true;
}
catch (Exception Ex) { MessageBox.Show(Ex.Message); }
this.button1.Enabled = false;
button1.Text = "监听中.....";