| gclib 421 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

  g | Connection's handle.
  timeout_ms | The 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 61 of file gclibo.c.

References G_UTIL_TIMEOUT_OVERRIDE, and GUtility().