[Qt-interest] Status update on Network Disconnected
Gururaj Deshpande
gururaja.deshpande at gmail.com
Sat Jan 15 18:24:30 CET 2011
Hi
Generally socket reset error will be thrown by native socket APIs. So I
believe the same will happen in case Qt as well. Are you using the Tcp
socket ?
Try catching the singals error() or disconnected(..).
-Dheerendra
> 2. Re: Status update on Network Disconnected (Arnold Krille)
>
> Message: 2
> Date: Wed, 12 Jan 2011 10:31:28 +0100
> From: Arnold Krille <arnold at arnoldarts.de>
> Subject: Re: [Qt-interest] Status update on Network Disconnected
> To: qt-interest at trolltech.com
> Message-ID: <201101121031.33062.arnold at arnoldarts.de>
> Content-Type: text/plain; charset="iso-8859-15"
>
> 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.nokia.com/pipermail/qt-interest/attachments/20110112/982b245b/attachment-0001.bin
>
> ------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
> End of Qt-interest Digest, Vol 2, Issue 57
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110115/97da49dd/attachment.html
More information about the Qt-interest-old
mailing list