gclib  307
Communications API for Galil controllers and PLCs
 All Data Structures Files Functions Variables Typedefs Macros Pages
GCLIB_DLL_EXPORTED GReturn GCALL GAddresses ( GCStringOut  addresses,
GSize  addresses_len 
)

Uses GUtility() and G_UTIL_ADDRESSES to provide a listing of all available connection addresses.

Note
Serial ports are listed, e.g. COM1. It may be necesary to specify a baud rate for the controller, e.g. --baud 19200. Default baud is 115200. See GOpen().
Parameters
addressesBuffer to hold the output string. Buffer will be null terminated, even if the data must be truncated to do so.
addresses_lenLength of buffer.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

Each line of the returned data will be of the form address, revision report (if available). If an IP address is unreachable via ping, the address will be in parentheses.

1 192.168.0.42, DMC4080 Rev 1.2d
2 192.168.0.80, RIO47122 Rev 1.1h
3 (10.4.0.12), DMC30010 Rev 1.2e
4 COM1

Definition at line 29 of file gclibo.c.

References G_UTIL_ADDRESSES, and GUtility().