[Qt-interest] Status update on Network Disconnected

Arnold Krille arnold at arnoldarts.de
Wed Jan 12 10:31:28 CET 2011


On Wednesday 12 January 2011 06:49:39 sudhish kapoor wrote:
> What i want to know is when the Network cable is unplugged, so that the
> appropriate actions can be taken in UI, I am using Qt4.6?

Not again.

Unless you tightly couple your app to one os and (in case of linux) to one 
network-managment tool, there is no reliable way to ever know that.

Of course you can use some libs (or manually filterung of dmesg-output) to 
detect if the cable is in or not. But that doesn't help for network 
connectivity. Neither wireless nor mobile-broadband nor bluetooth have cables.
And then there is the cases where a cable is involved: Like wired network 
which has no route to the internet. Or wired connection to the adsl-modem (the 
cable is plugged but that doesn't mean the connection to the net is up). 
Actually for all connections via cable, the status of the cable is in no way 
related to the status whether the network-connection is up.

Please think about what you want, why you think you want to know the cable-
status and please explain to us in more detail what you want to achieve.

And read the lists archives for past inquiries about this topic.

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110112/982b245b/attachment.bin 


More information about the Qt-interest-old mailing list