Skip to content

Commit 6c0377e

Browse files
committed
网络组件核心部分重新设计,升级到3.0版本,模版进行适配,原先的字符串组合模式被替代,客户端同步时间更准确。
1 parent f11d7b8 commit 6c0377e

File tree

16 files changed

+797
-476
lines changed

16 files changed

+797
-476
lines changed

CommonLibrary/Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static CommonLibrary()
1212
{
1313
//初始化模版的版本号
1414
//预计第一个正式发行的版本为1.1.0 日期为2017-08-10
15-
SoftBasic.FrameworkVersion = new SystemVersion("1.0.5");
15+
SoftBasic.FrameworkVersion = new SystemVersion("1.0.6");
1616

1717
}
1818

CommonLibrary/CommonLibrary.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Reference Include="HslCommunication, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
33+
<Reference Include="HslCommunication, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
3434
<SpecificVersion>False</SpecificVersion>
3535
<HintPath>..\Public\HslCommunication.dll</HintPath>
3636
</Reference>

CommonLibrary/HeadCode.cs

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,48 @@ public class CommonHeadCode
1515
/// </summary>
1616
public static Guid KeyToken { get; set; } = new Guid("1275BB9A-14B2-4A96-9673-B0AF0463D474");
1717

18-
18+
19+
1920
/// <summary>
20-
/// 同步通信的头说明,以字母A开头,后面接B,C,D,E,F
21+
/// 同步通信的指令头说明,以10000开头,后面接20000,30000,
2122
/// </summary>
2223
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Auto)]
2324
public class SimplifyHeadCode
2425
{
25-
public static string 维护检查 { get; } = "A001";//A开始的表明是系统相关的
26-
public static string 更新检查 { get; } = "A002";
27-
public static string 账户检查 { get; } = "A003";
28-
public static string 参数下载 { get; } = "A004";
29-
public static string 密码修改 { get; } = "A005";
30-
public static string 更细账户信息 { get; } = "A006";
31-
public static string 获取账户信息 { get; } = "A007";
32-
public static string 更新公告 { get; } = "A008";
33-
public static string 注册账号 { get; } = "A009";
34-
public static string 更新版本号 { get; } = "A010";
35-
public static string 请求文件列表 { get; } = "A011";
36-
public static string 意见反馈 { get; } = "A012";
26+
public static int 维护检查 { get; } = 10000;//10000开始的表明是系统相关的
27+
public static int 更新检查 { get; } = 10001;
28+
public static int 账户检查 { get; } = 10002;
29+
public static int 参数下载 { get; } = 10003;
30+
public static int 密码修改 { get; } = 10004;
31+
public static int 更细账户 { get; } = 10005;
32+
public static int 获取账户 { get; } = 10006;
33+
public static int 更新公告 { get; } = 10007;
34+
public static int 注册账号 { get; } = 10008;
35+
public static int 更新版本 { get; } = 10009;
36+
public static int 请求文件 { get; } = 10010;
37+
public static int 意见反馈 { get; } = 10011;
3738

3839

3940

4041

41-
public static string 网络日志查看 { get; } = "B001";//B开头的是日志请求和清空
42-
public static string 网络日志清空 { get; } = "B002";
43-
public static string 同步日志查看 { get; } = "B003";
44-
public static string 同步日志清空 { get; } = "B004";
45-
public static string 更新日志查看 { get; } = "B005";
46-
public static string 更新日志清空 { get; } = "B006";
47-
public static string 运行日志查看 { get; } = "B007";
48-
public static string 运行日志清空 { get; } = "B008";
49-
public static string 共享文件日志查看 { get; } = "B009";
50-
public static string 共享文件日志清空 { get; } = "B010";
51-
public static string 建议反馈日志查看 { get; } = "B011";
52-
public static string 建议反馈日志清空 { get; } = "B012";
53-
public static string UDP日志查看 { get; } = "B013";
54-
public static string UDP日志清空 { get; } = "B014";
42+
public static int 网络日志查看 { get; } = 11000;//11000开头的是日志请求和清空
43+
public static int 网络日志清空 { get; } = 11001;
44+
public static int 同步日志查看 { get; } = 11002;
45+
public static int 同步日志清空 { get; } = 11003;
46+
public static int 更新日志查看 { get; } = 11004;
47+
public static int 更新日志清空 { get; } = 11005;
48+
public static int 运行日志查看 { get; } = 11006;
49+
public static int 运行日志清空 { get; } = 11007;
50+
public static int 文件日志查看 { get; } = 11008;
51+
public static int 文件日志清空 { get; } = 11009;
52+
public static int 反馈日志查看 { get; } = 11010;
53+
public static int 反馈日志清空 { get; } = 11011;
54+
public static int UDP日志查看 { get; } = 11012;
55+
public static int UDP日志清空 { get; } = 11013;
5556

5657
/**************************************************************************************
5758
*
58-
* 为了保证您的指令头不和系统的冲突,您的指令头应该以C,D,E,F开头
59+
* 为了保证您的指令头不和系统的冲突,您的指令头应该以20000之后开头
5960
*
6061
**************************************************************************************/
6162

@@ -65,13 +66,13 @@ public class SimplifyHeadCode
6566
/// </summary>
6667
public class MultiNetHeadCode
6768
{
68-
public static string 所有客户端在线信息 { get; } = "H001";
69-
public static string 关闭所有客户端 { get; } = "H002";
70-
public static string 弹窗消息 { get; } = "H003";
71-
public static string 时间推送 { get; } = "H004";
72-
public static string 文件数量 { get; } = "H005";
73-
public static string 初始化数据 { get; } = "H006";
74-
public static string 留言消息 { get; } = "H007";
69+
public static int 总在线信息 { get; } = 50000;
70+
public static int 关闭客户端 { get; } = 50001;
71+
public static int 弹窗新消息 { get; } = 50002;
72+
public static int 时间的推送 { get; } = 50003;
73+
public static int 文件总数量 { get; } = 50004;
74+
public static int 初始化数据 { get; } = 50005;
75+
public static int 留言版消息 { get; } = 50006;
7576

7677

7778
/**************************************************************************************

Public/HslCommunication.dll

3 KB
Binary file not shown.

0 commit comments

Comments
 (0)