View Full Version : network ports up/down
kemp
8th August 2008, 08:43
Hi!
my application has to check on the local machne if an UDP port is up or down.
How can i get the status of an UDP port?
kemp
8th August 2008, 08:48
I have tried this with
QUdpSocket udpSocket;
if(udpSocket.bind(address,port))
{
return PORT_UP;
}
else
{
return PORT_DOWN;
}
but i don't know if this is the right solution for the problem.
kemp
8th August 2008, 09:38
solved with
QAbstractSocket::connectToHost
and
QAbstractSocket::SocketState
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.