Unable to get the insim init packet to work with the new insim version,
connects okay, and can send data. I try and send this
and, LFS just complains about incorrect packet size, and incorrect byte on first packet.
Using UDP btw.
connects okay, and can send data. I try and send this
$packet="";
$packet=pack("c", "44");
$packet.=pack("c", "ISP_ISI");
$packet.=pack("c", "1");
$packet.=pack("c", 0);
$packet.=pack("S", $localport);
$packet.=pack("S", "16+32");
$packet.=pack("c", 0);
$packet.=pack("c", 0);
$packet.=pack("c", 0);
$packet.=str_pad($adminPW, 16, "\0");
$packet.=str_pad("LTC Insim", 16, "\0");
fwrite($sender, $packet, strlen($packet));
and, LFS just complains about incorrect packet size, and incorrect byte on first packet.
Using UDP btw.