gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GPublishServer()

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.

This function is only available on Windows 10 and Linux.
nameThe name of the server to publish or remove
publishOption to publish or remove server from network
saveOption to save this configuration for future reboots

This function is used to make your local gcaps server "Discoverable" or "Invisible"

publish Option:
Set to 1 to publish server to the network and make "Discoverable"
Set to 0 to remove server from the network and make "Invisible"

save Option:
Set to 1 to save the configuration for future reboots of the server
Set to 0 to use this configuration once, and not overwrite previous server settings

This function will always use your local gcaps server, regardless of which server you have set as your active server.
The success status or error code of the function. See gclib_errors.h for possible values.

Definition at line 189 of file gclibo.c.

Referenced by remote_server().