-
大小: 3.26MB文件類(lèi)型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-08-12
- 語(yǔ)言: C/C++
- 標(biāo)簽: C#??TFTP??TFTPServer??
資源簡(jiǎn)介
新開(kāi)發(fā)的項(xiàng)目要用TFTP的功能,網(wǎng)上大多都是客戶(hù)端,有服務(wù)器端也大多是C語(yǔ)言或C++的。找了很久才找到了一個(gè)C#的,整理了一下,傳上來(lái),分享一下。

代碼片段和文件信息
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.字節(jié);
????????private?frameType?frameTp?=?frameType.數(shù)據(jù)位;
????????private?int?coeffice?=?1;
????????///?
????????///?編號(hào)
????????///?
????????[DescriptionAttribute(“該位在協(xié)議中處于第幾位(從左到右)“)
????????CategoryAttribute(“編號(hào)“)
????????ReadOnlyAttribute(true)
????????DefaultValueAttribute(0)]
????????public?int?ID
????????{
????????????get
????????????{
????????????????return?id;
????????????}
????????????set
????????????{
????????????????id?=?value;
????????????}
????????}
????????///?
????????///?高低位順序
????????///?
????????[DescriptionAttribute(“是否更改該位數(shù)據(jù)的高地位“)
????????CategoryAttribute(“高低位順序“)
????????DefaultValueAttribute(false)]
????????public?bool?IsHight
????????{
????????????get
????????????{
????????????????return?isHight;
????????????}
????????????set
????????????{
????????????????isHight?=?value;
????????????}
????????}
????????///?
????????///?代表名稱(chēng)
????????///?
????????[DescriptionAttribute(“該位代表的意義或名稱(chēng)“)
????????CategoryAttribute(“代表名稱(chēng)“)
????????ReadOnlyAttribute(false)
????????DefaultValueAttribute(““)]
????????public?string?CodeName
????????{
????????????get
????????????{
????????????????return?codeName;
????????????}
????????????set
????????????{
????????????????codeName?=?value;
????????????}
????????}
????????///?
????????///?默認(rèn)有效值
????????///?
????????[DescriptionAttribute(“默認(rèn)有效值“)
????????CategoryAttribute(“有效值“)
????????DefaultValueAttribute(““)]
????????public?string?CodeValue
????????{
????????????get
????????????{
????????????????return?codeValue;
????????????}
????????????set
????????????{
????????????????codeValue?=?value;
????????????}
????????}
????????///?
????????///?數(shù)據(jù)類(lèi)型
????????///?
????????[DescriptionAttribute(“表示該數(shù)據(jù)位的數(shù)據(jù)類(lèi)型“)
????????CategoryAttribute(“全局設(shè)置“)
????????DefaultValueAttribute(CodeType.無(wú)符號(hào)短整型)]
????????public?CodeType?CodeTp
????????{
????????????get
????????????{
????????????????return?codeTp;
????????????}
????????????set
????????????{
????????????????codeTp?=?value;
????????????}
????????}
????????///?
????????///?幀類(lèi)型枚舉
????????///?
????????[DescriptionAttribute(“表示該數(shù)據(jù)位所代表的意義的類(lèi)型枚舉,“)
????????CategoryAttribute(“全局設(shè)置“)
????????DefaultValueAttribute(frameType.幀頭)]
????????public?frameType?frameTp
????????{
????????????get
????????????{
????????????????return?frameTp;
????????????}
????????????set
????????????{
????????????????frameTp?=?value;
????????????}
????????}
????????///?
????????///?系數(shù)
????????///?
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件???????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個(gè)文件信息
評(píng)論
共有 條評(píng)論