更改注释和一个变量名称,v1.4.10
This commit is contained in:
@@ -43,7 +43,7 @@ namespace CommonLibrary
|
|||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
SoftBasic.FrameworkVersion = new SystemVersion("1.4.9");
|
SoftBasic.FrameworkVersion = new SystemVersion("1.4.10");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace 软件系统客户端Wpf
|
|||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
*
|
*
|
||||||
* 版本说明 最新版以github为准,由于提交更改比较频繁,需要经常查看官网地址:https://github.com/dathlin/C-S-
|
* 版本说明 最新版以github为准,由于提交更改比较频繁,需要经常查看官网地址:https://github.com/dathlin/ClientServerProject
|
||||||
* 注意 本代码的相关操作未作密码验证,如有需要,请自行完成
|
* 注意 本代码的相关操作未作密码验证,如有需要,请自行完成
|
||||||
* 如果 遇到启动调试就退出了,请注释掉App.xaml.cs文件中的指允许启动一个实例的代码
|
* 如果 遇到启动调试就退出了,请注释掉App.xaml.cs文件中的指允许启动一个实例的代码
|
||||||
*
|
*
|
||||||
@@ -394,10 +394,10 @@ namespace 软件系统客户端Wpf
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
net_socket_client.KeyToken = CommonLibrary.CommonProtocol.KeyToken;//新增的身份令牌
|
net_socket_client.KeyToken = CommonProtocol.KeyToken; // 新增的身份令牌
|
||||||
net_socket_client.EndPointServer = new System.Net.IPEndPoint(
|
net_socket_client.EndPointServer = new System.Net.IPEndPoint(
|
||||||
System.Net.IPAddress.Parse(UserClient.ServerIp),
|
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.ClientAlias = $"{UserClient.UserAccount.UserName} ({UserClient.UserAccount.Factory})";//标记客户端在线的名称
|
||||||
net_socket_client.ClientStart();
|
net_socket_client.ClientStart();
|
||||||
}
|
}
|
||||||
@@ -597,10 +597,11 @@ namespace 软件系统客户端Wpf
|
|||||||
#region Udp发送示例
|
#region Udp发送示例
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 调用该方法并指定参数即可,最长字符串不得超过服务器定义的数据
|
/// 调用该方法并指定参数即可,最长字符串不得超过服务器配置的长度,否则无效
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="data"></param>
|
/// <param name="customer">指令头</param>
|
||||||
private void SendServerUdpData(int customer, string data)
|
/// <param name="data">实际数据</param>
|
||||||
|
private void SendServerUdpData(NetHandle customer, string data)
|
||||||
{
|
{
|
||||||
//测试发送udp消息
|
//测试发送udp消息
|
||||||
UserClient.Net_Udp_Client.SendMessage(customer, data);
|
UserClient.Net_Udp_Client.SendMessage(customer, data);
|
||||||
|
|||||||
@@ -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)方法
|
* 示例 密码验证具体示例参照Form1_FormClosing(object sender, FormClosingEventArgs e)方法
|
||||||
* 如果 遇到启动调试就退出了,请注释掉Program.cs文件中的指允许启动一个实例的代码
|
* 如果 遇到启动调试就退出了,请注释掉Program.cs文件中的指允许启动一个实例的代码
|
||||||
@@ -562,11 +562,13 @@ namespace 软件系统客户端模版
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Udp发送示例
|
#region Udp发送示例
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 调用该方法并指定参数即可,最长字符串不得
|
/// 调用该方法并指定参数即可,最长字符串不得超过服务器配置的长度,否则无效
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="data"></param>
|
/// <param name="customer">指令头</param>
|
||||||
private void SendServerUdpData(int customer, string data)
|
/// <param name="data">实际数据</param>
|
||||||
|
private void SendServerUdpData(NetHandle customer, string data)
|
||||||
{
|
{
|
||||||
//测试发送udp消息
|
//测试发送udp消息
|
||||||
UserClient.Net_Udp_Client.SendMessage(customer, data);
|
UserClient.Net_Udp_Client.SendMessage(customer, data);
|
||||||
|
|||||||
Reference in New Issue
Block a user