Changing to quad.
This commit is contained in:
parent
c9cb8fe710
commit
93201c0fd5
@ -23,11 +23,11 @@ function transform(string $socketLocation, string $inputFile, string $outputFile
|
||||
"blackType" => $blackType,
|
||||
]);
|
||||
$json_len = strlen($json);
|
||||
socket_write($socket, pack("J", $json_len), 8);
|
||||
socket_write($socket, pack("Q", $json_len), 8);
|
||||
socket_write($socket, $json, $json_len);
|
||||
$json_len = "";
|
||||
socket_recv($socket, $json_len, 8, MSG_WAITALL);
|
||||
$json_len = unpack("J", $json_len)[1];
|
||||
$json_len = unpack("Q", $json_len)[1];
|
||||
$json = "";
|
||||
socket_recv($socket, $json, $json_len, MSG_WAITALL);
|
||||
$json = json_decode($json, true);
|
||||
|
Loading…
Reference in New Issue
Block a user