• 大小: 0.28M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-05-03
  • 语言: C#
  • 标签: 聊天室  UDP  实现  DP  简单  

资源简介

本程序是采用udp协议实现了简单的聊天室,包括客户端和服务端,客户端发送消息到服务端,服务端将接受到的消息分发到所有的客户端实现简单的群聊。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UDP_Client
{
    static class Program
    {
        /// 
        /// 应用程序的主入口点。
        /// 

        [STAThread]
        static void Main()
        {
            Application.EnableVisualstyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new udpClient());
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-11-08 12:49  UDP_Winform\
     目录           0  2020-11-08 13:10  UDP_Winform\.vs\
     目录           0  2020-11-08 13:10  UDP_Winform\.vs\UDP\
     目录           0  2020-11-08 13:10  UDP_Winform\.vs\UDP\v15\
     文件        6144  2020-11-08 13:10  UDP_Winform\.vs\UDP\v15\.suo
     目录           0  2020-11-08 12:49  UDP_Winform\.vs\UDP_Winform\
     目录           0  2020-11-08 12:49  UDP_Winform\.vs\UDP_Winform\v15\
     文件       73728  2020-11-08 19:23  UDP_Winform\.vs\UDP_Winform\v15\.suo
     目录           0  2020-11-08 12:49  UDP_Winform\.vs\UDP_Winform\v15\Server\
     目录           0  2020-11-08 14:48  UDP_Winform\.vs\UDP_Winform\v15\Server\sqlite3\
     文件           0  2020-11-08 11:18  UDP_Winform\.vs\UDP_Winform\v15\Server\sqlite3\db.lock
     文件      638976  2020-11-08 14:47  UDP_Winform\.vs\UDP_Winform\v15\Server\sqlite3\storage.ide
     文件       32768  2020-11-08 19:17  UDP_Winform\.vs\UDP_Winform\v15\Server\sqlite3\storage.ide-shm
     文件     1009432  2020-11-08 19:05  UDP_Winform\.vs\UDP_Winform\v15\Server\sqlite3\storage.ide-wal
     目录           0  2020-11-08 19:06  UDP_Winform\UDP_Client\
     文件         189  2020-11-08 12:04  UDP_Winform\UDP_Client\App.config
     目录           0  2020-11-08 12:49  UDP_Winform\UDP_Client\bin\
     目录           0  2020-11-08 12:49  UDP_Winform\UDP_Client\bin\Debug\
     文件       10752  2020-11-08 19:06  UDP_Winform\UDP_Client\bin\Debug\UDP_Client.exe
     文件         189  2020-11-08 12:04  UDP_Winform\UDP_Client\bin\Debug\UDP_Client.exe.config
     文件       32256  2020-11-08 19:06  UDP_Winform\UDP_Client\bin\Debug\UDP_Client.pdb
     目录           0  2020-11-08 12:06  UDP_Winform\UDP_Client\bin\Release\
     目录           0  2020-11-08 12:49  UDP_Winform\UDP_Client\obj\
     目录           0  2020-11-08 19:03  UDP_Winform\UDP_Client\obj\Debug\
     文件        7216  2020-11-08 12:06  UDP_Winform\UDP_Client\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2020-11-08 12:04  UDP_Winform\UDP_Client\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2020-11-08 12:04  UDP_Winform\UDP_Client\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2020-11-08 12:04  UDP_Winform\UDP_Client\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2020-11-08 12:04  UDP_Winform\UDP_Client\obj\Debug\TempPE\
     文件          42  2020-11-08 12:06  UDP_Winform\UDP_Client\obj\Debug\UDP_Client.csproj.CoreCompileInputs.cache
     文件        1761  2020-11-08 18:09  UDP_Winform\UDP_Client\obj\Debug\UDP_Client.csproj.FileListAbsolute.txt
............此处省略53个文件信息

评论

共有 条评论