PATCH: internetgetconnectionstate
Marcus Meissner
marcus at jet.franken.de
Thu Jul 12 02:20:12 CDT 2001
> >Changelog:
> > Have InternetGetConnectedState always return 'LAN connection'.
>
> Theoretically this could cause trouble when used with a computer
> having no connection to the Internet, as an app could think it can
> connect, try to do it, fail and terminate or display annoying messages.
> It's not really a strong objection, as most decent computers are
> connected to the Internet these days, but maybe a config option could
> be better ? Just a thought.
I spent some thought, and detecting how the computer is connected is not
trivial under Linux. You would need to parse either ifconfig -a output or
/proc/net/dev under Linux, then check for packets transmitted, interface
up/down status etc. This would be an ifdef and stringparsing hell.
I think the application usually has other fault handling in case the website
is down anyway, so we should not bother now.
Ciao, Marcus
More information about the wine-devel
mailing list