资源简介

服务器作为中介,实现客户端之间的数据通信

资源截图

代码片段和文件信息

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;
using System.Net.Sockets;
using System.Threading;
using System.IO;
using System.Collections;

namespace ServerAndClient
{

  
    // 多线程服务器端开发
    //定义一个新类,用于传递(连接socket )和接受发送数据。
    public partial class Form1 : Form
    {
        string RemoteEndPoint;     //客户端的网络结点

        Thread threadwatch = null;//负责监听客户端的线程
        Socket socketwatch = null;//负责监听客户端的套接字
        //创建一个和客户端通信的套接字
        Dictionary dic = new Dictionary { };   //定义一个集合,存储客户端信息

      
        //private static byte[] result =

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2016-01-21 15:06  ServerAndClient\ServerAndClient\App.config

     文件      16896  2016-04-14 23:27  ServerAndClient\ServerAndClient\bin\Debug\ServerAndClient.exe

     文件        187  2016-01-21 15:06  ServerAndClient\ServerAndClient\bin\Debug\ServerAndClient.exe.config

     文件      30208  2016-04-14 23:27  ServerAndClient\ServerAndClient\bin\Debug\ServerAndClient.pdb

     文件      22984  2016-04-18 16:08  ServerAndClient\ServerAndClient\bin\Debug\ServerAndClient.vshost.exe

     文件        187  2016-01-21 15:06  ServerAndClient\ServerAndClient\bin\Debug\ServerAndClient.vshost.exe.config

     文件        490  2015-10-30 15:19  ServerAndClient\ServerAndClient\bin\Debug\ServerAndClient.vshost.exe.manifest

     文件      13086  2016-02-01 10:48  ServerAndClient\ServerAndClient\Form1.cs

     文件      18169  2016-02-01 08:54  ServerAndClient\ServerAndClient\Form1.Designer.cs

     文件       5817  2016-02-01 08:54  ServerAndClient\ServerAndClient\Form1.resx

     文件       1751  2016-01-22 14:40  ServerAndClient\ServerAndClient\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7128  2016-01-30 10:19  ServerAndClient\ServerAndClient\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2396  2016-04-18 16:08  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.csproj.FileListAbsolute.txt

     文件        975  2016-02-01 08:55  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.csproj.GenerateResource.Cache

     文件       2368  2016-01-28 09:14  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.csprojResolveAssemblyReference.cache

     文件      16896  2016-04-14 23:27  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.exe

     文件        180  2016-02-01 08:55  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.Form1.resources

     文件      30208  2016-04-14 23:27  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.pdb

     文件        180  2016-01-22 15:18  ServerAndClient\ServerAndClient\obj\Debug\ServerAndClient.Properties.Resources.resources

     文件          0  2016-01-21 15:06  ServerAndClient\ServerAndClient\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2016-01-21 15:06  ServerAndClient\ServerAndClient\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2016-01-21 15:06  ServerAndClient\ServerAndClient\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        527  2016-01-21 15:06  ServerAndClient\ServerAndClient\Program.cs

     文件       1374  2016-01-21 15:06  ServerAndClient\ServerAndClient\Properties\AssemblyInfo.cs

     文件       2882  2016-01-21 15:06  ServerAndClient\ServerAndClient\Properties\Resources.Designer.cs

     文件       5612  2016-01-21 15:06  ServerAndClient\ServerAndClient\Properties\Resources.resx

     文件       1102  2016-01-21 15:06  ServerAndClient\ServerAndClient\Properties\Settings.Designer.cs

     文件        249  2016-01-21 15:06  ServerAndClient\ServerAndClient\Properties\Settings.settings

     文件       3863  2016-01-22 15:17  ServerAndClient\ServerAndClient\ServerAndClient.csproj

     文件        935  2016-01-21 15:06  ServerAndClient\ServerAndClient.sln

............此处省略39个文件信息

评论

共有 条评论