You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AUCMA_SCADA/Admin.Core.Socket/TSocket/MyFixedHeaderRequestInfo.cs

45 lines
1.1 KiB
C#

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; }
/// <summary>
/// 自定义属性,标识实际数据
/// </summary>
public byte[] Body { get => body; set => body = value; }
public bool OnParsingBody(byte[] body)
{
return true;
}
public bool OnParsingHeader(byte[] header)
{
return true;
}
}
}