From bf3b9d571263abf300b907465ac8b47ed2d66eb1 Mon Sep 17 00:00:00 2001 From: dathlin Date: Wed, 27 Sep 2017 11:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=B3=A8=E9=87=8A=E5=92=8C?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=8F=98=E9=87=8F=E5=90=8D=E7=A7=B0=EF=BC=8C?= =?UTF-8?q?v1.4.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CommonLibrary/ProtocolSupport/CommonProtocol.cs | 2 +- 软件系统客户端Wpf/MainWindow.xaml.cs | 13 +++++++------ 软件系统客户端模版/FormMainWindow.cs | 10 ++++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/CommonLibrary/ProtocolSupport/CommonProtocol.cs b/CommonLibrary/ProtocolSupport/CommonProtocol.cs index a7a0951..2f9262f 100644 --- a/CommonLibrary/ProtocolSupport/CommonProtocol.cs +++ b/CommonLibrary/ProtocolSupport/CommonProtocol.cs @@ -43,7 +43,7 @@ namespace CommonLibrary * **************************************************************************/ - SoftBasic.FrameworkVersion = new SystemVersion("1.4.9"); + SoftBasic.FrameworkVersion = new SystemVersion("1.4.10"); } diff --git a/软件系统客户端Wpf/MainWindow.xaml.cs b/软件系统客户端Wpf/MainWindow.xaml.cs index ac254b0..840b89e 100644 --- a/软件系统客户端Wpf/MainWindow.xaml.cs +++ b/软件系统客户端Wpf/MainWindow.xaml.cs @@ -45,7 +45,7 @@ namespace 软件系统客户端Wpf /*************************************************************************************** * - * 版本说明 最新版以github为准,由于提交更改比较频繁,需要经常查看官网地址:https://github.com/dathlin/C-S- + * 版本说明 最新版以github为准,由于提交更改比较频繁,需要经常查看官网地址:https://github.com/dathlin/ClientServerProject * 注意 本代码的相关操作未作密码验证,如有需要,请自行完成 * 如果 遇到启动调试就退出了,请注释掉App.xaml.cs文件中的指允许启动一个实例的代码 * @@ -394,10 +394,10 @@ namespace 软件系统客户端Wpf { try { - net_socket_client.KeyToken = CommonLibrary.CommonProtocol.KeyToken;//新增的身份令牌 + net_socket_client.KeyToken = CommonProtocol.KeyToken; // 新增的身份令牌 net_socket_client.EndPointServer = new System.Net.IPEndPoint( System.Net.IPAddress.Parse(UserClient.ServerIp), - CommonLibrary.CommonProtocol.Port_Main_Net); + CommonProtocol.Port_Main_Net); net_socket_client.ClientAlias = $"{UserClient.UserAccount.UserName} ({UserClient.UserAccount.Factory})";//标记客户端在线的名称 net_socket_client.ClientStart(); } @@ -597,10 +597,11 @@ namespace 软件系统客户端Wpf #region Udp发送示例 /// - /// 调用该方法并指定参数即可,最长字符串不得超过服务器定义的数据 + /// 调用该方法并指定参数即可,最长字符串不得超过服务器配置的长度,否则无效 /// - /// - private void SendServerUdpData(int customer, string data) + /// 指令头 + /// 实际数据 + private void SendServerUdpData(NetHandle customer, string data) { //测试发送udp消息 UserClient.Net_Udp_Client.SendMessage(customer, data); diff --git a/软件系统客户端模版/FormMainWindow.cs b/软件系统客户端模版/FormMainWindow.cs index 7e19d39..ba53a98 100644 --- a/软件系统客户端模版/FormMainWindow.cs +++ b/软件系统客户端模版/FormMainWindow.cs @@ -29,7 +29,7 @@ using HslCommunication.LogNet; /*************************************************************************************** * - * 版本说明 最新版以github为准,由于提交更改比较频繁,需要经常查看官网地址:https://github.com/dathlin/C-S- + * 版本说明 最新版以github为准,由于提交更改比较频繁,需要经常查看官网地址:https://github.com/dathlin/ClientServerProject * 注意 本代码的相关操作未作密码验证,如有需要,请自行完成 * 示例 密码验证具体示例参照Form1_FormClosing(object sender, FormClosingEventArgs e)方法 * 如果 遇到启动调试就退出了,请注释掉Program.cs文件中的指允许启动一个实例的代码 @@ -562,11 +562,13 @@ namespace 软件系统客户端模版 #endregion #region Udp发送示例 + /// - /// 调用该方法并指定参数即可,最长字符串不得 + /// 调用该方法并指定参数即可,最长字符串不得超过服务器配置的长度,否则无效 /// - /// - private void SendServerUdpData(int customer, string data) + /// 指令头 + /// 实际数据 + private void SendServerUdpData(NetHandle customer, string data) { //测试发送udp消息 UserClient.Net_Udp_Client.SendMessage(customer, data);