文件名称:C# TCP客户端源代码
文件大小:101KB
文件格式:RAR
更新时间:2020-09-27 09:38:11
C# TCP客户端
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SocketClient { public partial class SocketClient : Form { public delegate void UpdateReceiveMsgCallback(string msg);//定义委托变量 byte[] dataBuffer = new byte[10];//定义一个byte类型数组 IAsyncResult result; public AsyncCallback pfnCallBack; public Socket clientSocket; //构造函数 public SocketClient() { InitializeComponent(); //初始化 tb_ServerIP.Text = InitializeInfo(); tb_ServerPort.Text = "8000"; }
【文件预览】:
SocketClient
----SocketClient.resx(6KB)
----SocketClient.csproj.user(228B)
----SocketClient.cs(6KB)
----bin()
--------Debug()
--------Release()
----obj()
--------Debug()
--------Release()
----SocketClient.csproj(4KB)
----Properties()
--------Resources.Designer.cs(3KB)
--------Settings.settings(249B)
--------Resources.resx(5KB)
--------Settings.Designer.cs(1KB)
--------AssemblyInfo.cs(1KB)
----Program.cs(542B)
----SocketClient.v12.suo(53KB)
----App.config(187B)
----SocketClient.sln(992B)
----SocketClient.Designer.cs(11KB)