mirror-ac/server/Message/ClientRequest.cs

54 lines
1.3 KiB
C#
Raw Normal View History

2023-09-24 13:13:20 +02:00
using Serilog;
using System;
2023-09-11 16:14:21 +02:00
using System.Collections.Generic;
using System.Linq;
2023-09-24 13:13:20 +02:00
using System.Runtime.InteropServices;
2023-09-11 16:14:21 +02:00
using System.Text;
using System.Threading.Tasks;
2023-09-24 13:13:20 +02:00
using static server.Message.MessageHandler;
2023-09-11 16:14:21 +02:00
namespace server.Message
{
2023-09-24 13:13:20 +02:00
public class ClientRequest : IClientMessage
2023-09-11 16:14:21 +02:00
{
2023-09-24 13:13:20 +02:00
private readonly ILogger _logger;
private byte[] _buffer;
private int _bufferSize;
private CLIENT_REQUEST_HEADER _header;
private enum CLIENT_REQUEST_ID
{
BLACKLISTED_SIGNATURES = 10,
WINDOWS_VERSION_STRUCTURE_OFFSETS = 20
}
private struct CLIENT_REQUEST_HEADER
{
public int RequestId;
}
public ClientRequest(ILogger logger, ref byte[] buffer, int bufferSize)
{
this._logger = logger;
this._buffer = buffer;
this._bufferSize = bufferSize;
}
public bool HandleMessage()
{
throw new NotImplementedException();
}
public unsafe void GetPacketHeader()
{
this._header =
Helper.BytesToStructure<CLIENT_REQUEST_HEADER>(this._buffer, Marshal.SizeOf(typeof(PACKET_HEADER)));
}
public byte[] GetResponsePacket()
{
throw new NotImplementedException();
}
2023-09-11 16:14:21 +02:00
}
}