gclib  2.0.8
Communications API for Galil controllers and PLCs
remote_client_example.cs
Go to the documentation of this file.
1 
11 using System;
12 using System.Linq;
13 
14 namespace examples
15 {
23 
25  {
31  public static int Main()
32  {
33  int rc = Examples.GALIL_EXAMPLE_OK;
34 
35  try
36  {
37  rc = Examples.Remote_Client();
38  }
39  catch (Exception ex)
40  {
41  Console.WriteLine(ex.Message);
43  }
44 
45  Console.Write("\nPress any key to close the example");
46  Console.ReadKey();
47 
48  return rc;
49  }
50  }
52 }
Provides a class of shared constants and methods for gclib's example projects.
Definition: commands.cs:16
const int GALIL_EXAMPLE_OK
Examples success code.
Definition: examples.cs:29
const int GALIL_EXAMPLE_ERROR
Examples error code.
Definition: examples.cs:30
static int Main()
Main function for the Remote Client example.
Demonstrates various uses of GListServers() and GSetServer()
static int Remote_Client()
Accepts user input to publish to list and connect to available servers.