gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GTimeout()

GReturn GCALL GTimeout ( GCon  g,
short  timeout_ms 
)

Uses GUtility() and G_UTIL_TIMEOUT_OVERRIDE to set the library timeout.

Parameters
gConnection's handle.
timeout_msThe value to be used for the timeout. Use G_USE_INITIAL_TIMEOUT to set the timeout back to the initial GOpen() value, --timeout.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

See x_gcommand.cpp and x_gread_gwrite.cpp for examples.

Definition at line 65 of file gclibo.c.