[FIX] message can now be 4 bytes long
This commit is contained in:
@@ -59,7 +59,7 @@ namespace SharedClientServer
|
|||||||
// put the identifier at the start of the payload part
|
// put the identifier at the start of the payload part
|
||||||
res[4] = identifier;
|
res[4] = identifier;
|
||||||
// put the length of the payload at the start of the res array
|
// put the length of the payload at the start of the res array
|
||||||
res[0] = BitConverter.GetBytes(payloadBytes.Length+5);
|
Array.Copy(BitConverter.GetBytes(payloadBytes.Length+5),0,res,0,4);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user