OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P
#include <dcvrpc.h> DCLONG dc_rpc_get_watch_time_s(DCCLT_ID cltid)
#include <dcvrpc.h> DCLONG dc_rpc_get_watch_time()
References the response wait time for the current service request.
You can use this function to save the original value before temporarily changing the service response wait time using the dc_rpc_set_watch_time_s function.
The dc_rpc_get_watch_time_s function returns the service response wait time changed with the dc_rpc_set_watch_time_s function. When the wait time remains unchanged, the function returns the DCWATCHTIM value in the client environment definition.
Values obtained by the dc_rpc_get_watch_time_s function are available for the dc_rpc_call_s function.
Return Value | Value (decimal) | Meaning |
---|---|---|
- | Positive integer | Current service response wait time |
- | 0 | The service response wait time is indefinite. |
DCRPCER_PROTO | -2402 | The dc_rpc_open_s function is not executed. |
DCRPCER_NO_BUFS | -2404 | Insufficient memory |
DCRPCER_INVALID_CLTID | -2544 | The client ID specified for cltid differs from the one received from the dc_clt_cltin_s function. |
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.