rpc_set_short_timeout(3ncs)
Name
rpc_set_short_timeout − set or clear short-timeout mode (client only)
Syntax
#include <idl/c/rpc.h>
unsigned long rpc_$set_short_timeout(handle, state, status)
handle_t handle;
unsigned long state;
status_$t *status;
Arguments
handle
An RPC handle.
on If ‘true’ (not zero), short-timeout mode is set on handle. If ‘false’ (zero), standard timeouts are set.
status The completion status. If the completion status returned in status.all is equal to status_$ok , then the routine that supplied it was successful.
Description
The rpc_$set_short_timeout routine sets or clears short-timeout mode on a handle. If a client uses a handle in short-timeout mode to make a remote procedure call, but the server does not respond, the call fails quickly. As soon as the server responds, standard timeouts take effect and apply for the remainder of the call.
Calling rpc_$set_short_timeout with a value other than zero for state sets short-timeout mode. Calling it with state equal to zero, sets standard timeouts. Standard timeouts are the default.
This routine returns the previous setting of the timeout mode in status.all.
Diagnostics
This section lists status codes for errors returned by this rpc_$ routine in status.all.
rpc_$not_in_call An internal error.
rpc_$proto_error An internal protocol error.
Files
/usr/include/idl/c/rpc.h
/usr/include/idl/rpc.idl