OpenTP1 Version 7 Programming Reference C Language
dc_rpc_get_watch_time - Reference the service response waiting interval
Format
ANSI C, C++
#include <dcrpc.h> int dc_rpc_get_watch_time (void) |
K&R C
#include <dcrpc.h> int dc_rpc_get_watch_time() |
Description
The function dc_rpc_get_watch_time() references the current response waiting interval of a service request. This function is used for saving the current value of the service response waiting interval before temporarily changing it using the function dc_rpc_set_watch_time().
The function returns the service response waiting interval changed by the function dc_rpc_set_watch_time(). When the interval has not been changed, the following value is returned:
The value obtained by this function can be used by the OpenTP1 function dc_rpc_call().
Return values
Return value | Return value (numeric) | Explanation |
---|---|---|
DC_OK | 0 | The service response waiting interval means indefinite wait. |
Positive integer | Current the service response waiting interval. | |
Other than the above | An unprecedented error (e.g., program damage) occurred. |
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.