资源简介

c# udp文件传输,发送、接收文件

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace ReceiveFileDemo
{
    internal class ControlTag
    {
        private string _md5;
        private string _fileName;
        private IPEndPoint _remoteIP;

        public ControlTag(
            string md5
            string fileName
            IPEndPoint remoteIP)
        {
            _md5 = md5;
            _fileName = fileName;
            _remoteIP = remoteIP;
        }

        public string MD5
        {
            get { return _md5; }
            set { _md5 = value; }
        }

        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }

        public IPEndPoint RemoteIP
        {
            get { return _remoteIP

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-17 11:21  ReceiveFileDemo\
     文件         864  2014-12-17 20:29  ReceiveFileDemo\ControlTag.cs
     文件         491  2014-12-17 20:29  ReceiveFileDemo\Program.cs
     目录           0  2018-11-17 08:35  ReceiveFileDemo\Properties\
     文件        1181  2014-12-17 20:29  ReceiveFileDemo\Properties\AssemblyInfo.cs
     文件        2807  2014-12-17 20:29  ReceiveFileDemo\Properties\Resources.Designer.cs
     文件        5496  2014-12-17 20:29  ReceiveFileDemo\Properties\Resources.resx
     文件        1089  2014-12-17 20:29  ReceiveFileDemo\Properties\Settings.Designer.cs
     文件         242  2014-12-17 20:29  ReceiveFileDemo\Properties\Settings.settings
     文件        3894  2018-11-17 08:56  ReceiveFileDemo\ReceiveFileDemo.csproj
     文件        5318  2018-11-17 08:53  ReceiveFileDemo\ReceiveFileForm.Designer.cs
     文件        8806  2018-11-17 11:21  ReceiveFileDemo\ReceiveFileForm.cs
     文件        5814  2018-11-17 08:53  ReceiveFileDemo\ReceiveFileForm.resx
     目录           0  2018-11-17 08:34  ReceiveFileDemo\bin\
     目录           0  2018-11-17 11:26  ReceiveFileDemo\bin\Debug\
     文件       15360  2018-11-17 11:24  ReceiveFileDemo\bin\Debug\ReceiveFileDemo.exe
     文件       32256  2018-11-17 11:24  ReceiveFileDemo\bin\Debug\ReceiveFileDemo.pdb
     文件       56832  2018-11-17 11:24  ReceiveFileDemo\bin\Debug\UdpSendFile.dll
     文件      173568  2018-11-17 11:24  ReceiveFileDemo\bin\Debug\UdpSendFile.pdb
     目录           0  2018-11-17 11:28  ReceiveFileDemo\bin\Release\
     目录           0  2018-11-17 08:29  ReceiveFileDemo\obj\
     目录           0  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\
     文件         180  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\CS.ReceiveFileDemo.ReceiveFileForm.resources
     文件       16100  2018-11-17 11:21  ReceiveFileDemo\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6432  2018-11-17 08:56  ReceiveFileDemo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         180  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\ReceiveFileDemo.Properties.Resources.resources
     文件           0  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\ReceiveFileDemo.csproj.CopyComplete
     文件          42  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\ReceiveFileDemo.csproj.CoreCompileInputs.cache
     文件        1639  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\ReceiveFileDemo.csproj.FileListAbsolute.txt
     文件         857  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\ReceiveFileDemo.csproj.GenerateResource.cache
     文件       28604  2018-11-17 11:24  ReceiveFileDemo\obj\Debug\ReceiveFileDemo.csprojAssemblyReference.cache
............此处省略98个文件信息

评论

共有 条评论