Ping target computer
Enter the value returned by the function xPCOpenTcpIpPort.
If the target responds, the function returns
If the target computer does not respond, the function returns
The function does not return an error status.
xPCTargetPing function pings the target
computer and returns
on whether the target responds or not. This function returns an error
character string constant only when there is an error in the input
parameter. Such errors include an invalid port number or the port
is not open. Other errors, such as the inability to connect to the
target, are ignored.
xPCTargetPing causes the target computer
to close the TCP/IP connection. You can use xPCOpenConnection to reconnect. You can also use this
to close the target computer connection in the event of a failed connection.
For example, if the program running on your development computer has
a fatal error and aborts its I/O connection, you can close it.