I spent most of the weekend trying to get Grand Prix Legends GPL to work. I achieved my first goal of getting it to run in server mode.
One of the things I needed to get the game to do, was to recognise that there where some interfaces it could talk TCP/IP out of. It took me some time to realise that under windows it was doing this by looking for the key
[System\CurrentControlSet\Services\Class\NetTrans]
and was then enumerating the keys under it to establish an IP address ie the following
[System\CurrentControlSet\Services\Class\NetTrans\0000] "IPAddress"="10.0.10.100"
The thought occurred to me that maybe the tool the builds the registry during wine install could actually create these keys - since it is essentially a key part of the system (and other similar keys are also built in the same way).
I don't think I have the skills to do it myself yet.
Alan
alan@chandlerfamily.org.uk http://www.chandler.u-net.com
On Mon, 19 Feb 2001, Alan Chandler wrote:
and was then enumerating the keys under it to establish an IP address ie the following
[System\CurrentControlSet\Services\Class\NetTrans\0000] "IPAddress"="10.0.10.100"
The thought occurred to me that maybe the tool the builds the registry during wine install could actually create these keys - since it is essentially a key part of the system (and other similar keys are also built in the same way).
Nah... the IP address can change between Wine invocations (PPP, DHCP, and things like that), so it would have to be a dynamic key, generated at Wine startup or something like that (I think we already have a couple of those?), but then there's a question of how to get the OS's network interface IPs portably...
"Ove Kaaven" ovehk@ping.uio.no wrote:
On Mon, 19 Feb 2001, Alan Chandler wrote:
[System\CurrentControlSet\Services\Class\NetTrans\0000] "IPAddress"="10.0.10.100"
Nah... the IP address can change between Wine invocations (PPP, DHCP, and things like that), so it would have to be a dynamic key, generated at Wine startup or something like that (I think we already have a couple of those?), but then there's a question of how to get the OS's network interface IPs portably...
I just checked on Windows 98, and when the system is set for DHCP, the IPAddress and IPMask fields are "0.0.0.0". I doubt that you'd really need to set the correct, assigned IP address (since Win98 doesn't). The other side effect of this would be for a rather brain dead program like this, the call would succeed since it would be listening on all interfaces.