• 大小: 0.07M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 实例  C#  服务  c  源码  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;
namespace udp
{
    public partial class frmServer : Form
    {
       
        public frmServer()
        {
            InitializeComponent();
        } 
        //设端口
        bool done = false;
        private const int listenPort = 11000;
        private  void StartListener()
        {
            UdpClient listener = new UdpClient(listenPort);
            //任意IP,设端口为0表示任意
            IPEndPoint groupEP = new IPEndPoint(IPAddress.Any listenPort);
            try
            {
                while (!done)
                {
                    byte[] b

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-04-06 13:10  udp\
     目录           0  2010-04-06 13:10  udpSent\
     目录           0  2010-04-06 13:10  udpSent\udpSent\
     文件         910  2007-07-11 11:34  udpSent\udpSent.sln
     文件       15360  2007-07-11 11:34  udpSent\udpSent.suo
     目录           0  2010-04-06 13:10  udpSent\udpSent\bin\
     目录           0  2010-04-06 13:10  udpSent\udpSent\bin\Debug\
     文件       20480  2007-07-11 11:34  udpSent\udpSent\bin\Debug\udpSent.exe
     文件       22016  2007-07-11 11:34  udpSent\udpSent\bin\Debug\udpSent.pdb
     文件        5632  2007-07-11 11:34  udpSent\udpSent\bin\Debug\udpSent.vshost.exe
     文件        1251  2007-07-11 11:34  udpSent\udpSent\Form1.cs
     文件        4393  2007-07-11 11:34  udpSent\udpSent\Form1.Designer.cs
     文件        5814  2007-07-11 11:34  udpSent\udpSent\Form1.resx
     目录           0  2010-04-06 13:10  udpSent\udpSent\obj\
     目录           0  2010-04-06 13:10  udpSent\udpSent\obj\Debug\
     目录           0  2010-04-06 13:10  udpSent\udpSent\obj\Debug\TempPE\
     文件         842  2007-07-11 11:34  udpSent\udpSent\obj\Debug\udpSent.csproj.GenerateResource.Cache
     文件       20480  2007-07-11 11:34  udpSent\udpSent\obj\Debug\udpSent.exe
     文件         180  2007-07-11 11:34  udpSent\udpSent\obj\Debug\udpSent.Form1.resources
     文件       22016  2007-07-11 11:34  udpSent\udpSent\obj\Debug\udpSent.pdb
     文件         180  2007-07-11 11:34  udpSent\udpSent\obj\Debug\udpSent.Properties.Resources.resources
     文件         268  2007-07-11 11:34  udpSent\udpSent\obj\udpSent.csproj.FileList.txt
     文件         466  2007-07-11 11:34  udpSent\udpSent\Program.cs
     目录           0  2010-04-06 13:10  udpSent\udpSent\Properties\
     文件        1162  2007-07-11 11:34  udpSent\udpSent\Properties\AssemblyInfo.cs
     文件        2868  2007-07-11 11:34  udpSent\udpSent\Properties\Resources.Designer.cs
     文件        5612  2007-07-11 11:34  udpSent\udpSent\Properties\Resources.resx
     文件        1090  2007-07-11 11:34  udpSent\udpSent\Properties\Settings.Designer.cs
     文件         249  2007-07-11 11:34  udpSent\udpSent\Properties\Settings.settings
     文件        3221  2007-07-11 11:34  udpSent\udpSent\udpSent.csproj
     目录           0  2010-04-06 13:10  udp\udp\
............此处省略29个文件信息

评论

共有 条评论