Is there a way on Qt to look at the host and see which ports are being used and by whom?
Would tcpSocket->listen() or udpSocket->bind() give me the information.
Is there a way on Qt to look at the host and see which ports are being used and by whom?
Would tcpSocket->listen() or udpSocket->bind() give me the information.
You could parse the output of Netstat by using QProcess ?
listen() and bind() are members of the relevant xServer classes and not the xSocket classes.
You can find out the local and foreign addresses and ports from QAbstractSocket::localHost(), QAbstractSocket::localPort(), QAbstractSocket:eerAddress() and QAbstractSocket:
eerPort()
Bookmarks