21 int main(
int argc,
char * argv[])
24 int rc = GALIL_EXAMPLE_OK;
28 std::string server_name;
32 std::cout <<
"Enter name of your server: ";
33 std::getline(std::cin, server_name);
37 server_name = argv[1];
47 return GALIL_EXAMPLE_ERROR;
51 return GALIL_EXAMPLE_OK;
int GReturn
Every function returns a value of type GReturn. See gclib_errors.h for possible values.
#define G_SMALL_BUFFER
Most reads from Galil are small. This value will easily hold most, e.g. TH, TZ, etc.
int main(int argc, char *argv[])
Main function for Commands Example.
GReturn remote_server(const char *server_name)
Publishes local gcaps server to the network.
void error(GCon g, GReturn rc)
An example of error handling and debugging information.
int pause()
Pauses console apps for a user key stroke.