gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GListServers()

GReturn GCALL GListServers ( GCStringOut  servers,
GSize  servers_len 
)

Uses GUtility(), G_UTIL_GCAPS_LIST_SERVERS to provide a list of all available gcaps services on the local network.

Note
This function is only available on Windows 10 and Linux.
Parameters
serversThe buffer to hold the list of available gcaps servers
servers_lenThe length of the servers buffer

This function is used to find a list of available gcaps servers that have made themselves "Discoverable".

The list of available servers are separated by a newline '\n' character.

Attention
This function will always use your local gcaps server, regardless of which server you have set as your active server.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

Definition at line 169 of file gclibo.c.

References G_GCAPS_OPEN_ERROR, G_NO_ERROR, G_UTIL_GCAPS_LIST_SERVERS, and GUtility().