client and server connect

This commit is contained in:
shinichi
2020-09-23 14:31:37 +02:00
parent 8e45c9a435
commit d67c8448ad
5 changed files with 107 additions and 37 deletions

View File

@@ -60,7 +60,7 @@ namespace Client
{
byte[] res = new byte[payload.Length + 5];
Array.Copy(BitConverter.GetBytes(payload.Length), 0, res, 0, 4);
Array.Copy(BitConverter.GetBytes(payload.Length + 5), 0, res, 0, 4);
res[4] = messageId;
Array.Copy(payload, 0, res, 5, payload.Length);