Hey guys,
From a Qt app,
is there a simple way to check if we have access to the internet?
Thanks.
Hey guys,
From a Qt app,
is there a simple way to check if we have access to the internet?
Thanks.
Check google or other in port 80
http://www.qtcentre.org/forum/f-qt-p...ion-25426.html
bunjee (22nd November 2009)
Qt Code:
socket->connectToHost("hostName", portNumber); if (socket->waitForConnected(1000)) qDebug("Connected!");To copy to clipboard, switch view to plain text mode
Bookmarks