From d4160d80c79245c1d7d0cd450ba48cb7850e411d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 23 十一月 2020 10:45:54 +0800
Subject: [PATCH] 20201123
---
HDL_ON/DAL/DriverLayer/Control_TcpClient.cs | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/DriverLayer/Control_TcpClient.cs b/HDL_ON/DAL/DriverLayer/Control_TcpClient.cs
similarity index 90%
rename from HDL_ON/DriverLayer/Control_TcpClient.cs
rename to HDL_ON/DAL/DriverLayer/Control_TcpClient.cs
index f3ad0a0..01f3832 100644
--- a/HDL_ON/DriverLayer/Control_TcpClient.cs
+++ b/HDL_ON/DAL/DriverLayer/Control_TcpClient.cs
@@ -7,6 +7,11 @@
{
public class Control_TcpClient
{
+ /// <summary>
+ /// 閫氳ID
+ /// </summary>
+ public const int msg_id = 1;
+
//澹版槑IP锛岀鍙o紝鍜屼竴涓敤鏉ヨ繛鎺ョ殑Socket
public string _ip;
@@ -119,8 +124,21 @@
// MainPage.Log($"鎺ユ敹鏈嶅姟绔暟鎹�:{tcpDataString}");
//}
+
}
}
+ #region A鍗忚
+ /// <summary>
+ /// 鍙戦�丄鍗忚鏁版嵁
+ /// </summary>
+ /// <param name="topic"></param>
+ public void SendData(string topic)
+ {
+ string topicString = "Topic:" + topic + "/r/n";
+ string lenghtString = "Length:" + "/r/n" + "/r/n";
+ }
+
+ #endregion
}
}
\ No newline at end of file
--
Gitblit v1.8.0