On most platforms you wouldn't be able to send an IMCP packet without superuser privileges so it would be hard to call that a portable solution which means it wouldn't go to Qt anyway. And on the remaining platforms it's just a few lines of code to implement it natively. Besides, there is always QProcess and the 'ping' command available on most platforms.
Bookmarks