wxr
2023-11-08 d099a65ce3f5f8ed9ba345f8f3bdcf617fa4af75
HDL_ON/DAL/DriverLayer/Packet.cs
@@ -12,11 +12,11 @@
    /// </summary>
    public class Packet
    {
        /// <summary>
        /// 缓冲区大小
        /// Link协议现在一个包的数据比较大,缓冲区太小存不完全部数据 2023-07-14 16:03:56  wxr
        /// </summary>
        public const int Size = 1024 * 10;
        ///// <summary>
        ///// 缓冲区大小
        ///// Link协议现在一个包的数据比较大,缓冲区太小存不完全部数据 2023-07-14 16:03:56  wxr
        ///// </summary>
        //public const int Size = 2000;
        /// <summary>
        /// 接收到的数据
@@ -28,11 +28,15 @@
        /// </summary>
        public System.Net.EndPoint RemoteEndPoint;
        public Packet()
        public Packet(int lenght)
        {
            this.Bytes = new byte[Size];
            this.Bytes = new byte[lenght];
            RemoteEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Any, 0);
        }
        public Packet(byte[] data, System.Net.EndPoint remoteEndPoint)
        {
            this.Bytes = data;