| gclib 1.35.5 Communications API for Galil controllers and PLCs |

## ◆ GRemoteConnections()

GReturn GCALL GRemoteConnections | ( | GCStringOut | connections,
|  | GSize | connections_length
| ) |  |

Uses GUtility(), G_UTIL_GCAPS_REMOTE_CONNECTIONS to get a list of remote addresses connected to the local server.

Note
  This function is only available on Windows 10 and Linux.

Parameters

  connections | The buffer to hold the list of remote IP addresses currently connected to your hardware
  connections_len | The length of the connections buffer

This function is used to find a list of IP Addresses of machines that currently have open connections to your local hardware. If another user sets your local server as their active server, and then opens a connection to your hardware, their IP Address will appear in this list.

The list of IP addresses 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 217 of file gclibo.c.

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