How to ping in C++/Qt without to use a QProcess?

Viewed 2825

I would like ping an ip address in my Qt Application before to launch an external program.

I would like code a ping class without to use ping.exe (and execute a process). The problem is when I "ping 127.0.0.1", it takes 3+ seconds to finish the (ping) process on windows. I need only a fast check (less than 500 ms) before to execute (instantly) my external program.

I would like use QNetwork or something similar.

1 Answers
Related