OpenTP1 Version 7 Programming Reference C Language

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

dc_rpc_set_watch_time - Update a service response waiting interval

Format

ANSI C, C++

#include <dcrpc.h>
int  dc_rpc_set_watch_time (int var)

K&R C

#include <dcrpc.h>
int  dc_rpc_set_watch_time (var)
int       var;

Description

The function dc_rpc_set_watch_time() change the response waiting interval of a service request. The value set by this function remains valid until the function dc_rpc_close() is called.

To reset the response waiting interval of a service request to the value which was in effect before this function was called, supply this function with the original value returned by the function dc_rpc_get_watch_time().

This function does not change the value specified for the operand watch_time in the system common definition. The value set by this function influences only the function dc_rpc_call() which will be called later.

Arguments whose value is set in the UAP

var

Specify a new service response waiting interval in the range from 1 to 65535. For indefinite wait, specify 0.

Return values

Return value Return value (numeric) Explanation
DC_OK 0 Normal termination.
DCRPCER_INVALID_ARGS -301 The value specified for var is invalid.
Other than the above. An unprecedented error (e.g., program damage) occurred.