gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ 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.

References G_UTIL_TIMEOUT_OVERRIDE, and GUtility().

Referenced by motion_complete(), x_gcommand(), x_ginterrupt(), x_gmessage(), x_gread_gwrite(), and x_nonblocking().