I run LFS nogfx host and then connect to it with a php script
> php\php.exe -q script.php
Actually, the script makes a connection, receives ISP_VER and prints its contents to stdout, then closes. LFS should close the connection on timeout.
Strange thing is that in LFS window I see
What causes those 2 "no slots" messages? I don't run the script twice.
> php\php.exe -q script.php
<?php
include("insim_constants.inc.php");
set_time_limit (0);
$address = '192.168.0.2';
$speakPort = 29999;
$listenPort = 30000;
$maxClients = 1;
$sockIn = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP) or die("Couldn't create listen socket");
socket_bind($sockIn, $address, $listenPort) or die('Could not bind to address');
$sockOut = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP) or die("Couldn't create send socket");
socket_connect($sockOut, $address, $speakPort) or die('Could not connect to address');
$pack = pack("CCCxSSxCSa16a16", 44, ISP_ISI, 1, $listenPort, ISF_NLP, 36, 1000, "detail", "detail");
socket_write($sockOut, $pack, strlen($pack));
print(bin2hex(socket_read($sockIn, 20, PHP_BINARY_READ)));
exit;
?>
Strange thing is that in LFS window I see
InSim - UDP : detail (port 30000)
InSim - UDP : no slots available
InSim - UDP : no slots available
InSim timeout : detail
What causes those 2 "no slots" messages? I don't run the script twice.