'ping' From Within Application (QNX 6.1)?

Is there a library call that will perform the equivilent test as ‘ping’
does from the command line?

Is there another easy, non-intrusive way for an application to
determine that io-net and the TCP/IP stack are still functional?

We have an embedded app that seems to lose network communications
periodically for no obvious reason. The recovery has been re-boot of
the processor board by a hardware watchdog, but this has proven
unacceptable to the users.

On Thu, May 04, 2006 at 04:00:43AM -0400, Jeff Maass wrote:

Is there a library call that will perform the equivilent test as ‘ping’
does from the command line?

You can get the ping source code from NetBSD to see how it’s implemented
and take what you need from it. I’ve also seen a libping library
(http://www.joedog.org/libping/) that seems to do what you want and
should port easily to QNX.


Gilles