22 void print_server_message(
const char*
message)
25 std::cout <<
message << std::endl;
45 char instructions[] =
"<p> Publish this server to the network\n" 46 "<r> Remove this server from the network\n" 50 cout << instructions << std::endl;
72 print_server_message(
"Published Server");
76 print_server_message(
"Removed Server");
84 return GALIL_EXAMPLE_OK;
GReturn message(GCon g)
Demonstrates how to receive messages from the controller and detect differences in Trace and crashed ...
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.
GReturn remote_server(const char *server_name)
Publishes local gcaps server to the network.
#define G_SMALL_BUFFER
Most reads from Galil are small. This value will easily hold most, e.g. TH, TZ, etc.
void e(GReturn rc)
A trivial, C++ style return code check used in Galil's examples and demos.
int GReturn
Every function returns a value of type GReturn. See gclib_errors.h for possible values.