[quake3] Mergine unix_net.c and win_net.c questions
Ryan C. Gordon
icculus at icculus.org
Tue Aug 14 18:20:00 EDT 2007
> 1) In Sys_IsLANAddress, why does the windows version check if IP is
> loopback and not check if the address is an internal class {A,B,C}
> address as in unix_net.c? The following code checks if IP is loopback
> in win_net.c.
Because the Unix stuff was maintained by a developer at Loki, and he was
much more detailed-oriented for plumbing issues like that...the lowlevel
bits of the Windows code, maintained at Id, probably never changed as
soon as they worked.
In Id's defense, they were focused on writing a game. :)
Don't be surprised if you find subtle differences between platforms like
this. Merging sources that are mostly identical (like the Winsock and
BSD Sockets) is a really good idea.
--ryan.
More information about the quake3
mailing list