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.
29 lines
706 B
C#
29 lines
706 B
C#
using Admin.Core.Socket.Plugins;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TouchSocket.Sockets;
|
|
|
|
namespace Admin.Core.Socket.TSocket
|
|
{
|
|
internal class MyFixedHeaderCustomDataHandlingAdapter : CustomFixedHeaderDataHandlingAdapter<MyFixedHeaderRequestInfo>
|
|
{
|
|
public override int HeaderLength => 10;
|
|
|
|
protected override MyFixedHeaderRequestInfo GetInstance()
|
|
{
|
|
try
|
|
{
|
|
return new MyFixedHeaderRequestInfo();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return new MyFixedHeaderRequestInfo();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|