资源简介
在网上搜到的C#实现的UDP文件传输代码,分享给大家。局域网下速度能达到5,6M,效率还可以

代码片段和文件信息
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; }
set { _remoteIP = value; }
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 906 2009-08-03 10:58 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\ControlTag.cs
文件 484 2009-08-06 18:29 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\Program.cs
文件 1214 2009-07-28 16:18 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\Properties\AssemblyInfo.cs
文件 2885 2009-07-28 16:18 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\Properties\Resources.Designer.cs
文件 5612 2009-07-28 16:18 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\Properties\Resources.resx
文件 1099 2009-07-28 16:18 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\Properties\Settings.Designer.cs
文件 249 2009-07-28 16:18 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\Properties\Settings.settings
文件 3853 2009-08-06 18:30 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\ReceiveFileDemo.csproj
文件 8479 2009-08-06 18:31 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\ReceiveFileForm.cs
文件 6331 2009-08-06 18:31 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\ReceiveFileForm.Designer.cs
文件 5814 2009-08-06 18:31 UdpSendFileDemo - 6\Backup\ReceiveFileDemo\ReceiveFileForm.resx
文件 1203 2009-07-28 16:59 UdpSendFileDemo - 6\Backup\UdpSendFile\BufferHelper.cs
文件 791 2009-08-03 10:07 UdpSendFileDemo - 6\Backup\UdpSendFile\Command.cs
文件 1149 2009-08-02 18:44 UdpSendFileDemo - 6\Backup\UdpSendFile\FileReceiveBufferEvent.cs
文件 965 2009-08-02 17:29 UdpSendFileDemo - 6\Backup\UdpSendFile\FileReceiveCompleteEvent.cs
文件 1158 2009-08-03 12:19 UdpSendFileDemo - 6\Backup\UdpSendFile\FileReceiveEvent.cs
文件 1110 2009-08-02 18:44 UdpSendFileDemo - 6\Backup\UdpSendFile\FileSendBufferEvent.cs
文件 910 2009-08-02 18:43 UdpSendFileDemo - 6\Backup\UdpSendFile\FileSendEvent.cs
文件 529 2009-07-30 11:01 UdpSendFileDemo - 6\Backup\UdpSendFile\IDataCell.cs
文件 836 2009-08-02 18:43 UdpSendFileDemo - 6\Backup\UdpSendFile\LabelClickEvent.cs
文件 2097 2009-08-01 13:40 UdpSendFileDemo - 6\Backup\UdpSendFile\MD5Helper.cs
文件 1206 2009-07-28 10:21 UdpSendFileDemo - 6\Backup\UdpSendFile\Properties\AssemblyInfo.cs
文件 2841 2009-08-01 12:05 UdpSendFileDemo - 6\Backup\UdpSendFile\Properties\Resources.Designer.cs
文件 5612 2009-07-28 10:21 UdpSendFileDemo - 6\Backup\UdpSendFile\Properties\Resources.resx
文件 1106 2009-08-01 12:05 UdpSendFileDemo - 6\Backup\UdpSendFile\Properties\Settings.Designer.cs
文件 249 2009-07-28 10:21 UdpSendFileDemo - 6\Backup\UdpSendFile\Properties\Settings.settings
文件 1008 2009-07-28 16:59 UdpSendFileDemo - 6\Backup\UdpSendFile\ReadFileBufferEvent.cs
文件 916 2009-07-28 16:59 UdpSendFileDemo - 6\Backup\UdpSendFile\ReadFileob
文件 1177 2009-07-30 11:03 UdpSendFileDemo - 6\Backup\UdpSendFile\ReceiveDataEvent.cs
文件 8337 2009-08-06 13:10 UdpSendFileDemo - 6\Backup\UdpSendFile\ReceiveFileManager.cs
............此处省略169个文件信息
- 上一篇:VB.NET C# 截屏小工具
- 下一篇:HTTPS证书创建+绑定端口+C#程序监听
相关资源
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
评论
共有 条评论