using Admin.Core.Common; using log4net; using NPOI.POIFS.Storage; using NPOI.SS.Formula.Functions; using Org.BouncyCastle.Tsp; using Org.BouncyCastle.Utilities.Encoders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TouchSocket.Core; using TouchSocket.Sockets; namespace Admin.Core.Socket.TSocket { public class MyFixedHeaderRequestInfo : IFixedHeaderRequestInfo { private static readonly log4net.ILog LogInfo = LogManager.GetLogger(typeof(MyFixedHeaderRequestInfo)); private int m_bodyLength; private byte[] m_length = new byte[2]; private byte[] body; bool flag = true; public int BodyLength { get => m_bodyLength; } /// /// 自定义属性,标识实际数据 /// public byte[] Body { get => body; set => body = value; } public bool OnParsingBody(byte[] body) { return true; } public bool OnParsingHeader(byte[] header) { return true; } } }