modbus_get_timeout_begin(3) =========================== NAME ---- modbus_get_timeout_begin - get timeout of begin of message SYNOPSIS -------- *void modbus_get_timeout_begin(*modbus_t 'ctx', struct timeval *'timeout');* DESCRIPTION ----------- The _modbus_get_timeout_begin()_ function shall store the current timeout of begin of message in the 'timeout' argument. RETURN VALUE ------------ There is no return values. EXAMPLE ------- [source,c] ------------------- struct timeval timeout_begin_old; struct timeval timeout_begin_new; /* Save original timeout */ modbus_get_timeout_begin(ctx, &timeout_begin_old); /* Define a new and too short timeout! */ timeout_begin_new.tv_sec = 0; timeout_begin_new.tv_usec = 0; modbus_set_timeout_begin(ctx, &timeout_begin_new); ------------------- SEE ALSO -------- linkmb:modbus_set_timeout_begin[3] linkmb:modbus_get_timeout_end[3] linkmb:modbus_set_timeout_end[3] AUTHORS ------- The libmodbus documentation was written by Stéphane Raimbault