⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpc_allow_remote_shutdown.3ncs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3NCS
字号:
.TH rpc_allow_remote_shutdown 3ncs.SH Namerpc_allow_remote_shutdown \- allow or disallow remote shutdown of aserver (server only).SH Syntax#include <idl/c/rpc.h>void rpc_$allow_remote_shutdown(\fIallow, checkproc,\fIstatus\fP).nfunsigned long \fIallow\fP;rpc_$shut_check_fn_t \fIcheckproc\fR;status_$t *\fIstatus\fR;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$allow_remote_shutdown(\fR.\"	\fBin \fIallow\fB: unsigned32;\fR.\"	\fBin \fIcheckproc\fB: rpc_$shut_check_fn_t;\fR.\"	\fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 20 15\fIallow\fRA value indicating `false' if zero, `true' otherwise..TP 20 15\fIcheckproc\fRA pointer to a Boolean function..TP 20 15\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_$allow_remote_shutdownroutine allows or disallows remote callers to shut down a server using .PN rrpc_$shutdown ..NXR "Interface to the Remote Procedure Call".NXR "rpc_allow_remote_shutdown".PPBy default, servers do not allow remote shutdown via .PN rrpc_$shutdown .If a server calls .PN rpc_$allow_remote_shutdownwith .I allowtrue(not zero) and \fIcheckproc\fRnil, then remote shutdown will be allowed.If .I allowis true and \fIcheckproc\fRis not nil, then when a remote shutdown request arrives,the function denoted by .I checkprocis called and the shutdown is allowed if the function returns true.If .I allowis false (zero), remote shutdown is disallowed..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_$you_crashed\fRThis error can occur if a server has crashed and restarted.A client RPC runtime library sends the error to the serverif the client makes a remote procedure call before the server crashes,then receives a response after the server restarts..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), rpc_shutdown(3ncs), rrpc_shutdown(3ncs)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -