资源简介

C# Socket通信 源码,客户端和服务器端

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;
using System.Threading;
using System.IO;
using ZaZaNiao;

namespace SocketClient
{
    public partial class FrmClient : Form
    {
        private CSocketClient m_sockClient = null;
        private CSocketClient.ReceiveCallBack m_recvCallBack = null;

        //定义回调
        private delegate void SetTextCallBack(string strValue);
        private SetTextCallBack setCallBack;

        public FrmClient()
        {
            InitializeComponent();
            txt_IP.Text = “127.0.0.1“;
            txt_Port.Tex

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-06 20:11  MultiSocketEx\
     目录           0  2019-01-06 20:27  MultiSocketEx\SocketClient\
     目录           0  2019-01-06 20:27  MultiSocketEx\SocketClient\.vs\
     目录           0  2019-01-06 20:27  MultiSocketEx\SocketClient\.vs\SocketClient\
     目录           0  2019-01-06 20:27  MultiSocketEx\SocketClient\.vs\SocketClient\v14\
     文件       20480  2018-08-02 16:21  MultiSocketEx\SocketClient\.vs\SocketClient\v14\.suo
     目录           0  2019-01-06 20:11  MultiSocketEx\SocketClient\SocketClient\
     文件        5458  2018-07-23 17:47  MultiSocketEx\SocketClient\SocketClient\FrmClient.Designer.cs
     文件        4022  2018-08-02 16:18  MultiSocketEx\SocketClient\SocketClient\FrmClient.cs
     文件        5817  2018-07-23 17:47  MultiSocketEx\SocketClient\SocketClient\FrmClient.resx
     文件         497  2018-07-23 17:18  MultiSocketEx\SocketClient\SocketClient\Program.cs
     目录           0  2019-01-06 20:11  MultiSocketEx\SocketClient\SocketClient\Properties\
     文件        1356  2018-07-23 17:14  MultiSocketEx\SocketClient\SocketClient\Properties\AssemblyInfo.cs
     文件        2876  2018-07-23 17:14  MultiSocketEx\SocketClient\SocketClient\Properties\Resources.Designer.cs
     文件        5612  2018-07-23 17:14  MultiSocketEx\SocketClient\SocketClient\Properties\Resources.resx
     文件        1099  2018-07-23 17:14  MultiSocketEx\SocketClient\SocketClient\Properties\Settings.Designer.cs
     文件         249  2018-07-23 17:14  MultiSocketEx\SocketClient\SocketClient\Properties\Settings.settings
     文件        3742  2018-07-25 18:47  MultiSocketEx\SocketClient\SocketClient\SocketClient.csproj
     文件       11951  2018-08-02 16:19  MultiSocketEx\SocketClient\SocketClient\SocketEx.cs
     目录           0  2019-01-06 20:11  MultiSocketEx\SocketClient\SocketClient\bin\
     目录           0  2019-01-06 20:11  MultiSocketEx\SocketClient\SocketClient\bin\Debug\
     文件       15360  2019-01-06 20:28  MultiSocketEx\SocketClient\SocketClient\bin\Debug\SocketClient.exe
     文件       34304  2019-01-06 20:28  MultiSocketEx\SocketClient\SocketClient\bin\Debug\SocketClient.pdb
     文件       22696  2019-01-06 20:52  MultiSocketEx\SocketClient\SocketClient\bin\Debug\SocketClient.vshost.exe
     文件         490  2018-04-12 07:35  MultiSocketEx\SocketClient\SocketClient\bin\Debug\SocketClient.vshost.exe.manifest
     目录           0  2019-01-06 20:11  MultiSocketEx\SocketClient\SocketClient\obj\
     目录           0  2019-01-06 20:11  MultiSocketEx\SocketClient\SocketClient\obj\x86\
     目录           0  2019-01-06 20:28  MultiSocketEx\SocketClient\SocketClient\obj\x86\Debug\
     文件        2870  2019-01-06 20:28  MultiSocketEx\SocketClient\SocketClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7167  2019-01-06 20:27  MultiSocketEx\SocketClient\SocketClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         180  2018-08-02 16:19  MultiSocketEx\SocketClient\SocketClient\obj\x86\Debug\SocketClient.FrmClient.resources
............此处省略53个文件信息

评论

共有 条评论