How to ping a remote machine with Qt

I am developing a cross-platform (Windows-Mac-Unix) application using Qt. This is my first time using this structure, so I open it.

I need to ping a remote machine based on its IP address, and I cannot find a way to perform this task with a Qt map, although it seems pretty simple ... I found examples on the Internet, but they use OS-dependent methods, which I I want to avoid, since I have to work in different environments. Isn't there a simple ping command in a Qt framework? And how to use it?

Any help would be greatly appreciated, thanks in advance.

+4
source share
1 answer

As far as I know, there is no direct way to ping another system in QT, since it requires superuser privileges on different operating systems. Therefore, it is best to try to establish a connection (preferably TCP) between the two machines.

0
source

Source: https://habr.com/ru/post/1379624/


All Articles