Uses GUtility() and G_UTIL_TIMEOUT_OVERRIDE to set the library timeout.
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 . |
See x_gcommand.cpp and x_gread_gwrite.cpp for examples.