| gclib 1.35.5 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
24 class Remote_Client_Example
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);
42 rc = Examples.GALIL_EXAMPLE_ERROR;
43 }
44
45 Console.Write("\nPress any key to close the example");
46 Console.ReadKey();
47
48 return rc;
49 }
50 }
52 }
examples.Examples
Provides a class of shared constants and methods for gclib's example projects.
Definition: commands.cs:16
examples.Examples.GALIL_EXAMPLE_OK
const int GALIL_EXAMPLE_OK
Examples success code.
Definition: examples.cs:29
examples.Examples.GALIL_EXAMPLE_ERROR
const int GALIL_EXAMPLE_ERROR
Examples error code.
Definition: examples.cs:30
examples.Remote_Client_Example.Main
static int Main()
Main function for the Remote Client example.
Definition: remote_client_example.cs:31
examples.Remote_Client_Example
Demonstrates various uses of GListServers() and GSetServer()
Definition: remote_client_example.cs:25
examples.Examples.Remote_Client
static int Remote_Client()
Accepts user input to publish to list and connect to available servers.
Definition: Remote_Client.cs:33
examples
Definition: commands.cs:14