Is there a Linux function that is equivalent to the InetIsOffline function in Windows (provided by url.dll) that can tell me whether the system is connected to the Internet, or do I have to cook up something myself?
The reason I ask is that I am an early-adopter of Lhogho. I found out how to do this in Windows and wanted to develop something to offer the same functionality in Linux.
You can talk to Network Manager over D-Bus to see if anything is connected, but other than that there’s no specific way of doing so. And even NM isn’t always accurate.