OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

2.1.8 Referencing and changing response waiting intervals of service request

During UAP processing, response waiting intervals of service request can be temporarily changed. Use the function dc_rpc_get_watch_time() [CBLDCRPC('GETWATCH')] to reference the current response waiting interval and the function dc_rpc_set_watch_time() [CBLDCRPC('SETWATCH')] to change it. The value set by the function dc_rpc_set_watch_time() will be effective until the UAP calls the function dc_rpc_close().

The function dc_rpc_watch_time() returns the response waiting interval set by the function dc_rpc_set_watch_time(). If no new interval has been set, the following value is returned:

The value obtained by this function is effective as the response waiting interval for the function dc_rpc_call() of OpenTP1.

To return the response waiting interval of service request to the value which stood before the function dc_rpc_set_watch_time() was called, set in this function the original value returned by the function dc_rpc_get_watch_time() which was called previously.

The function dc_rpc_set_watch_time() influences called UAP service requests, but does not affect the value given to the watch_time operand in the system common definition. The value specified in this function influences only the function dc_rpc_call() which will be called later.