TCP/IP ETHERNET
netPing()
212 M
X
800 SERIES PROGRAMMERS GUIDE
netPing()
Tests whether the remote host is reachable.
Prototype
int result = netPing(char *host)
Parameters
Return Values
NOTE
This program sends an ICMP message to the remote host asking for
acknowledgement.
host Pointer to remote host either in the “xxx.xxx.xxx.xxx” IP address
format or fully qualified domain name.
0 Success
< 0 Error