4 ''' <remarks>The first argument is optional and defines the name to publish the server under.</remarks>
5 Module Remote_Server_Example
8 ''' Main function for the Remote Server example.
10 ''' <returns>The success status Or
error code of the
function.</returns>
11 ''' <remarks>The first argument is optional and defines the name to publish the server under.</remarks>
12 Function
Main() As Integer
13 Dim rc As Integer =
Examples.GALIL_EXAMPLE_OK
14 Dim args() As String = Environment.GetCommandLineArgs()
16 Dim server_name As String
18 If args.Count() <> 2 Then
19 Console.Write("Enter Server Name: ")
20 server_name = Console.ReadLine()
27 Console.WriteLine(ex.Message)
31 Console.Write(vbCrLf + "Press any key to close the example.")
GCLIB_DLL_EXPORTED GReturn GCALL GPublishServer(GCStringIn name, GOption publish, GOption save)
Uses GUtility(), G_UTIL_GCAPS_PUBLISH_SERVER to publish local gcaps server to the local network.
void error(GCon g, GReturn rc)
An example of error handling and debugging information.
int Remote_Server(string server_name)
Demonstrates various uses of GPublishServer()