At 11:37 PM 09/07/2001 +0200, you (Marcus Meissner) wrote:
Hi,
QuickTimePlayer 5 is using InternetGetConnectedState to check whether to download its 'homepage'.
Just say we are connected, and on a LAN.
Ciao, Marcus
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.
Gerard
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
Marcus Meissner wrote:
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.
How about looking at the output of the route command (or /proc/net/route) and seeing if there is a default route present?
Berend