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?
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?
I have tried this with
but i don't know if this is the right solution for the problem.Qt Code:
QUdpSocket udpSocket; if(udpSocket.bind(address,port)) { return PORT_UP; } else { return PORT_DOWN; }To copy to clipboard, switch view to plain text mode
solved with
QAbstractSocket::connectToHost
and
QAbstractSocket::SocketState
Bookmarks