资源简介
新开发的项目要用TFTP的功能,网上大多都是客户端,有服务器端也大多是C语言或C++的。找了很久才找到了一个C#的,整理了一下,传上来,分享一下。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace GMS_Com
{
public class AppSettings
{
private int id = 0;
private bool isHight = true;
private string codeName = “1“;
private string codeValue = “0“;
private CodeType codeTp = CodeType.字节;
private frameType frameTp = frameType.数据位;
private int coeffice = 1;
///
/// 编号
///
[DescriptionAttribute(“该位在协议中处于第几位(从左到右)“)
CategoryAttribute(“编号“)
ReadOnlyAttribute(true)
DefaultValueAttribute(0)]
public int ID
{
get
{
return id;
}
set
{
id = value;
}
}
///
/// 高低位顺序
///
[DescriptionAttribute(“是否更改该位数据的高地位“)
CategoryAttribute(“高低位顺序“)
DefaultValueAttribute(false)]
public bool IsHight
{
get
{
return isHight;
}
set
{
isHight = value;
}
}
///
/// 代表名称
///
[DescriptionAttribute(“该位代表的意义或名称“)
CategoryAttribute(“代表名称“)
ReadOnlyAttribute(false)
DefaultValueAttribute(““)]
public string CodeName
{
get
{
return codeName;
}
set
{
codeName = value;
}
}
///
/// 默认有效值
///
[DescriptionAttribute(“默认有效值“)
CategoryAttribute(“有效值“)
DefaultValueAttribute(““)]
public string CodeValue
{
get
{
return codeValue;
}
set
{
codeValue = value;
}
}
///
/// 数据类型
///
[DescriptionAttribute(“表示该数据位的数据类型“)
CategoryAttribute(“全局设置“)
DefaultValueAttribute(CodeType.无符号短整型)]
public CodeType CodeTp
{
get
{
return codeTp;
}
set
{
codeTp = value;
}
}
///
/// 帧类型枚举
///
[DescriptionAttribute(“表示该数据位所代表的意义的类型枚举,“)
CategoryAttribute(“全局设置“)
DefaultValueAttribute(frameType.帧头)]
public frameType frameTp
{
get
{
return frameTp;
}
set
{
frameTp = value;
}
}
///
/// 系数
///
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3719 2014-02-19 18:34 TFTPServerDemo\GMS-Com\AppSettings.cs
文件 46592 2014-02-25 10:43 TFTPServerDemo\GMS-Com\bin\Debug\GMS-Com.dll
文件 103936 2014-02-25 10:43 TFTPServerDemo\GMS-Com\bin\Debug\GMS-Com.pdb
文件 135 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Debug\sqlite.bat
文件 470528 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Debug\sqlite3.exe
文件 822784 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Debug\System.Data.SQLite.dll
文件 42496 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Release\GMS-Com.dll
文件 135 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Release\sqlite.bat
文件 470528 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Release\sqlite3.exe
文件 822784 2014-02-19 18:34 TFTPServerDemo\GMS-Com\bin\Release\System.Data.SQLite.dll
文件 4073 2014-02-19 18:34 TFTPServerDemo\GMS-Com\CDeviceEntity.cs
文件 730 2014-02-19 18:34 TFTPServerDemo\GMS-Com\CustomTimer.cs
文件 1040 2014-02-19 18:34 TFTPServerDemo\GMS-Com\CustomTimer.Designer.cs
文件 6850 2014-02-19 18:34 TFTPServerDemo\GMS-Com\EnumClass.cs
文件 3752 2014-02-19 18:34 TFTPServerDemo\GMS-Com\GMS-Com.csproj
文件 16919 2014-02-19 18:34 TFTPServerDemo\GMS-Com\LinuxTelnetHelper.cs
文件 5776 2014-02-25 10:43 TFTPServerDemo\GMS-Com\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 898 2014-02-25 10:43 TFTPServerDemo\GMS-Com\obj\Debug\GMS-Com.csproj.FileListAbsolute.txt
文件 46592 2014-02-25 10:43 TFTPServerDemo\GMS-Com\obj\Debug\GMS-Com.dll
文件 103936 2014-02-25 10:43 TFTPServerDemo\GMS-Com\obj\Debug\GMS-Com.pdb
文件 5810 2014-02-19 18:34 TFTPServerDemo\GMS-Com\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
文件 1106 2014-02-19 18:34 TFTPServerDemo\GMS-Com\obj\Release\GMS-Com.csproj.FileListAbsolute.txt
文件 42496 2014-02-19 18:34 TFTPServerDemo\GMS-Com\obj\Release\GMS-Com.dll
文件 4753 2014-02-19 18:34 TFTPServerDemo\GMS-Com\obj\Release\ResolveAssemblyReference.cache
文件 1364 2014-02-19 18:34 TFTPServerDemo\GMS-Com\Properties\AssemblyInfo.cs
文件 3752 2014-02-19 18:34 TFTPServerDemo\GMS-Com\sc
文件 135 2014-02-19 18:34 TFTPServerDemo\GMS-Com\sqlite.bat
文件 470528 2014-02-19 18:34 TFTPServerDemo\GMS-Com\sqlite3.exe
文件 7265 2014-02-19 18:34 TFTPServerDemo\GMS-Com\SqliteHelper.cs
文件 822784 2014-02-19 18:34 TFTPServerDemo\GMS-Com\System.Data.SQLite.dll
............此处省略116个文件信息
- 上一篇:函数图像生成器&利用CPU画曲线
- 下一篇:工业相机开发手册
相关资源
- c#与西门子1500通讯
- c++调用C# COM 参数是结构体数组
- CTP上期技术平台API及C#封装更新到CT
- C#神思二代身份证读卡程序 demo
- C#调用百度地图获取经纬度
- 03 C#与C++dll互相传递字符串.rar
- c# 华大HD900身份证阅读器操作类
- 即时通讯开发源码终极版C#.NETC++都有
- C#C++混合编程C#调用非托管C++类
- c#图书管理系统+详细数据库设计文档
- Visual Studio 2010 Express 学习版
- C++调用C#库例程
- c#与STK开发
- OPC Data Access 3.00 Source Code
- C#/C++麦克风插拔检测
- 使用C#创建webservice服务,并使用服务
- CTP接口 C#封装版
- C# 版VNC、远程连接
- 求解一元四次方程(vbvcc#excelhtml)-
- C#游戏开发快速入门
- [原创]实现用VB.Net(C#)开发K3 BOS 插件
- C# To C++ Converter 17.10.2 (最新破解版
- C语言 wav文件读取头文件和数据
- C#火车订票系统
- C++调用C#dll代码
- C#调用C++的dll,回调函数,string和in
- C++dll生成给C#调用
- 三菱PLC 上位机的SDK文档(1)一般的人
- 关联规则fpgrowthc、c#和matlab算法附讲解
- 基于Visual C#的DirectX开发.rar
评论
共有 条评论