# InetPing

int InetPing (const char *address, int *available);

## Purpose

Pings a machine to check if it is available.

## Parameters

Input
Name | Type | Description
address | const char * | The network address of the machine to ping. The address can be an IP address or a network name.
timeout | unsigned int | Time in milliseconds to wait for reply from server.
Output
Name | Type | Description
available | integer * | Indicates whether the machine is available. The output value is nonzero if the machine is available and 0 if the machine is not available. Pass the address of an integer variable to hold this value.

## Return Value

Name | Type | Description
result | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.