change udpData type from list to queue

This commit is contained in:
2025-04-16 21:19:55 +08:00
parent 84699708d5
commit 3b674f413a
7 changed files with 176 additions and 131 deletions

View File

@@ -375,7 +375,7 @@ namespace WebProtocol
{
if (bytes[0] != (byte)PackSign.RecvData)
throw new ArgumentException(
"The sign of bytes is not RecvData Package!",
$"The sign of bytes is not RecvData Package, Sign: 0x{BitConverter.ToString([bytes[0]])}",
nameof(bytes)
);
return new RecvDataPackage(bytes[1], bytes[2], bytes[4..]);
@@ -478,7 +478,7 @@ namespace WebProtocol
{
if (bytes[0] != (byte)PackSign.RecvResp)
throw new ArgumentException(
"The sign of bytes is not RecvResp Package!",
$"The sign of bytes is not RecvResp Package, Sign: 0x{BitConverter.ToString([bytes[0]])}",
nameof(bytes)
);
return new RecvRespPackage(bytes[1], bytes[2]);