資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Net;
using?System.Net.Sockets;
using?System.Threading;
using?System.IO;
namespace?_2222222
{
????public?partial?class?frmClient?:?Form
????{
????????public?frmClient()
????????{
????????????InitializeComponent();
????????????TextBox.CheckForIllegalCrossThreadCalls?=?false;
????????}
????????Thread?threadClient?=?null;?//?創(chuàng)建用于接收服務(wù)端消息的?線程;
????????Socket?sockClient?=?null;
????????private?void?btnConnect_Click(object?sender?EventArgs?e)
????????{
????????????IPAddress?ip?=?IPAddress.Parse(txtIp.Text.Trim());
????????????IPEndPoint?endPoint=new?IPEndPoint?(ipint.Par
- 上一篇:C#教程實(shí)用版
- 下一篇:C# pki編程 (含服務(wù)端和客戶端)
評論
共有 條評論