Skip to content

Commit 34371a2

Browse files
committed
网络组件更新优化
1 parent aff737f commit 34371a2

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Public/HslCommunication.dll

-512 Bytes
Binary file not shown.

Public/HslCommunication.xml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

软件系统客户端模版/UserClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class UserClient
7474
/// <summary>
7575
/// 用于使用udp向服务器进行发送即时可丢失数据的对象
7676
/// </summary>
77-
public static UdpNetClient Net_Udp_Client = new UdpNetClient(new System.Net.IPEndPoint(System.Net.IPAddress.Parse(ServerIp),
77+
public static Net_Udp_Client Net_Udp_Client = new Net_Udp_Client(new System.Net.IPEndPoint(System.Net.IPAddress.Parse(ServerIp),
7878
CommonLibrary.CommonLibrary.Port_Udp_Server));
7979
}
8080
}

软件系统服务端模版/Form1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,13 +801,13 @@ private void Net_simple_file_server_FileChange()
801801
/// <summary>
802802
/// 服务器的UDP核心引擎
803803
/// </summary>
804-
private UdpNetServer net_udp_server { get; set; }
804+
private Net_Udp_Server net_udp_server { get; set; }
805805

806806
private void Net_Udp_Server_Initialization()
807807
{
808808
try
809809
{
810-
net_udp_server = new UdpNetServer();
810+
net_udp_server = new Net_Udp_Server();
811811
net_udp_server.LogHelper.LogSaveFileName = Application.StartupPath + @"\udp_log.txt";//日志路径
812812
net_udp_server.ReceiveCacheLength = 1024;//单次接收数据的缓冲长度
813813
net_udp_server.AcceptByte += Net_udp_server_AcceptByte;//接收到字节数据的时候触发事件

0 commit comments

Comments
 (0)