Send hello packet.

This commit is contained in:
2019-10-12 22:13:33 +01:00
parent 36d273b7af
commit 083517b8ed
4 changed files with 136 additions and 86 deletions

View File

@@ -2,7 +2,7 @@ namespace DiscImageChef.Devices.Remote
{
public class Consts
{
public const string PacketId = "DICPACKT";
public const ulong PacketId = 0x6873678065677584; // "DICPACKT"
public const int PacketVersion = 1;
public const int MaxProtocol = 1;
}

View File

@@ -5,8 +5,7 @@ namespace DiscImageChef.Devices.Remote
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct DicPacketHeader
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public byte[] id;
public ulong id;
public uint len;
public byte version;