| gclib 1.35.5 Communications API for Galil controllers and PLCs |

Remote Client Example

C++ | C# | Visual Basic
--- | --- | ---
Example | Example | Example
Logic | Logic | Logic
Instructions | Instructions | Instructions

We are always interested in what our customers would like to see! To request any new examples or supported languages, please email suppo.nosp@m.rt@g.nosp@m.alil..nosp@m.com.

## Concepts

This example demonstrates:

- How to discover other gcaps servers on your local network
- How to connect to other gcaps servers
- How to list available hardware on your connected server

## Prerequisites

This example works best in conjunction with the Remote Server Example running on a separate machine on the same network.

Note
  Linux users will need to install the ncurses library.

## Example Output

Text colored green represents user input.

<s> List available servers on the network
<h> List available hardware on currently connected server
<0-9> Enter numbers 0-9 to connect to a server by index
<l> Set active server back to local server
<q> Quit

h

192.168.42.28, DMC4080 Rev 1.3c, Controller, 192.168.42.1
COM1
COM3
COM4

s

Available Servers:
<0> Example Server

0

Server set to: Example Server

h

/dev/ttyS0
/dev/ttyUSB0

l

Server set to: Local