C#.net TCP通讯

时间:2020-11-29 04:59:44
【文件属性】:

文件名称:C#.net TCP通讯

文件大小:155KB

文件格式:ZIP

更新时间:2020-11-29 04:59:44

C#.net TCP通讯

try { TcpClient = new TcpClient(txtServerIp.Text, int.Parse(txtPort.Text.Trim())); Stream = TcpClient.GetStream(); ClientReader = new StreamReader(Stream); ClientWriter = new StreamWriter(Stream); txtServerIp.Enabled = false; btnConnect.Enabled = false; this.Text = "客户端 " + "正在与" + txtServerIp.Text.Trim() + "连接……"; return; } catch { txtServerIp.Enabled = true; btnConnect.Enabled = true; this.Text = "连接失败……"; //MessageBox.Show("连接失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); }


【文件预览】:
TCPͨѶ
----client()
--------client()
--------client.suo(28KB)
--------UpgradeLog.XML(4KB)
--------client.sln(908B)
--------_UpgradeReport_Files()
--------Backup()
----server()
--------today_chat()

网友评论

  • 资源可以,但不是我想要的。