rpc_set_short_timeout.3ncs
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3NCS 代码 · 共 75 行
3NCS
75 行
.TH rpc_set_short_timeout 3ncs.SH Namerpc_set_short_timeout \- set or clear short-timeout mode (client only).SH Syntax#include <idl/c/rpc.h>unsigned long rpc_$set_short_timeout(\fIhandle, state, status\fP).nfhandle_t \fIhandle\fP;unsigned long \fIstate\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBfunction rpc_$set_short_timeout(\fR.\" \fBin \fIh\fB: handle_t;\fR.\" \fBin \fIon\fB: unsigned32;\fR.\" \fBout \fIst\fB: status_$t): unsigned32;\fR.\".DE.SH Arguments.TP\fIhandle\fRAn RPC handle..TP\fIon\fRIf `true' (not zero), short-timeout mode is set on \fIhandle\fR. If `false' (zero), standard timeouts are set..TP\fIstatus\fRThe completion status.If the completion status returned in.PN status\&.allis equal to.B status_$ok ,then the routine that supplied it was successful..SH DescriptionThe .PN rpc_$set_short_timeoutroutinesets 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..NXR "Interface to the Remote Procedure Call" "rpc_set_short_timeout".PPCalling .PN rpc_$set_short_timeoutwith a value other than zero for \fIstate\fRsets short-timeout mode.Calling it with \fIstate\fR equal to zero, sets standard timeouts.Standard timeouts are the default..PPThis routine returns the previous setting of the timeout mode in.PN status\&.all ..SH DiagnosticsThis section lists status codes for errors returned by this.PN rpc_$routine in.PN status\&.all ..TP 20\fBrpc_$not_in_call\fRAn internal error..TP 20\fBrpc_$proto_error\fRAn internal protocol error..SH Files.PN /usr/include/idl/c/rpc.h.br.PN /usr/include/idl/rpc.idl.SH See Alsointro(3ncs)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?