how to check computer's state using QT ?

Posted by kaycee on Stack Overflow See other posts from Stack Overflow or by kaycee
Published on 2010-04-08T15:41:05Z Indexed on 2010/04/08 15:43 UTC
Read the original article Hit count: 145

Filed under:
|

i'm trying to get computer's state in my LAN... thought about using QTcpSocket but it's not realy effective since port also should be inserted as:

socket->connectToHost("hostName", portNumber);
if (socket->waitForConnected(1000))
     qDebug("Connected!");

can anyone demonstare me a better way to check if computer is responding ?

© Stack Overflow or respective owner

Related posts about qt

Related posts about networking