Admin Production ni-theme
Current Publication

InetPing

LabWindows/CVI

InetPing

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

Purpose

Pings a machine to check if it is available.

RT This function is not supported on the LabWindows/CVI Real-Time Module.

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 int 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 int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: Internet Library

Include file: cvintwrk.h

LabWindows/CVI compatibility: LabWindows/CVI 7.1 and later