rrpc_shutdown.3ncs

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3NCS 代码 · 共 94 行

3NCS
94
字号
.TH rrpc_shutdown 3ncs.SH Namerrpc_shutdown \- shut down a server.SH Syntax#include <idl/c/rrpc.h>void rrpc_$shutdown(\fIhandle, status\fP).nfhandle_t \fIhandle\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rrpc.ins.pas'\fR.\".\"\fBprocedure rrpc_$shutdown(\fR.\"	\fBin \fIhandle\fB: handle_t;\fR.\"	\fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP\fIhandle\fRA remote procedure call (RPC) handle..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 rrpc_$shutdownroutine shuts down a server, if the server allows it.A server can use the .PN rpc_$allow_remote_shutdownroutine to allow or disallow remote shutdown..NXR "Remote Remote Procedure Call Interface" "rrpc_shutdown"   .SH DiagnosticsThis section lists status codes for errors returned by this .PN rrpc_$routine in.PN status\&.all ..TP.B rrpc_$shutdown_not_allowdYou send an.PN rrpc_shutdownrequest to a server that has not issued an.PN rpc_allow_remote_shutdowncall..SH RestrictionsOn the client side, because of the way the.PN rrpc_calls are defined and implementedin the run-time library.PN libnck.a ,you must explicitly callinto the entry point vector table for the.PN rrpc_interface tosend an.PN rrpc_request across the network. Thefollowing is an example of a call that worksas desired:.EX(*rrpc_$client_epv.rrpc_$shutdown)(handle, &status);.EE.PPThe server side stub routine calls the entry point.PN rrpc_$shutdownon behalf of the client.  The results of the call are thenpassed back to the client..PPBefore making the shutdown call, the server must havepreviouslyexecuted the following call:.EXrpc_$allow_remote_shutdown((unsigned long) TRUE,NULL,&status);.EE.PPIf the server has not allowed remote shutdown, the.PN rrpc_$shutdowncall returns an.PN operation\0not\0implementedstatus code..SH Files.PN /usr/include/idl/c/rrpc.h.br.PN /usr/include/idl/rrpc.idl.SH See Alsointro(3ncs), rpc_allow_remote_shutdown(3ncs), rpc_shutdown(3ncs)

⌨️ 快捷键说明

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