rpc_register_mgr.3ncs
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3NCS 代码 · 共 124 行
3NCS
124 行
.TH rpc_register_mgr 3ncs.SH Namerpc_register_mgr \- register a manager (server only).SH Syntax#include <idl/c/rpc.h>void rpc_$register_mgr(\fItype, ifspec, sepv, mepv, status\fP).nfuuid_$t *\fItype\fP;rpc_$if_spec_t *\fIifspec\fP;rpc_$generic_epv_t \fIsepv\fP;rpc_$mgr_epv_t \fImepv\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$register_mgr(\fR.\" \fBin \fItype\fB: uuid_$t;\fR.\" \fBin \fIifspec\fB: rpc_$if_spec_t;\fR.\" \fBin \fIsepv\fB: rpc_$generic_epv_t;\fR.\" \fBin \fImepv\fB: rpc_$mgr_epv_t;\fR.\" \fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 20\fItype\fRThe UUID of the type being registered..TP 20\fIifspec\fRThe interface being registered..TP 20\fIsepv\fRThe generic EPV, a vector of pointers to server stub procedures..TP 20\fImepv\fRThe manager EPV, a vector of pointers to manager procedures..TP 20\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_$register_mgrroutine registers the set of manager procedures that implementa specified interface for a specified type..NXR "Interface to the Remote Procedure Call" "rpc_register_mgr".PPServers can invoke this routineseveral times with the same interface (\fIifspec\fR) and generic EPV (\fIsepv\fR)but with a different object type (\fItype\fR) and manager EPV (\fImepv\fR)on each invocation.This technique allows a server to export several implementations of the same interface..PPServers that export several versions of the same interface(but not different implementations for different types)must also use .PN rpc_$register_mgr ,not .PN rpc_$register .Such servers should supply .B uuid_$nilas the \fItype\fR to .PN rpc_$register_mgr ..PPIf a server uses .PN rpc_$register_mgrto register a manager for a specific interface and a specific type thatis not nil, the server must use.PN rpc_$register_objectto register an object..SH DiagnosticsThis section lists status codes for errors returned by this.PN rpc_$routine in.PN status\&.all ..TP 20\fBrpc_$op_rng_error\fRThe requested operation does not correspond to a valid operation in the requested interface..TP 20\fBrpc_$unk_if\fRThe requested interface is not known.It is not registered in the server,the version number of the registered interface isdifferent from the version number specified in the request,or the UUID in the request does not match the UUID of the registered interface..TP 20\fBrpc_$too_many_ifs\fRThe maximum number of interfaces is already registered with the RPC runtime library;the server must unregister some interface before it registers an additional interface..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..TP 20\fBrpc_$illegal_register\fRYou are trying to register an interface that is already registered and you are using an EPV different fromthe one used when the interface was first registered.An interface can be multiply registered,but you must use the same EPV in each .PN rpc_$registerroutine..SH Files.PN /usr/include/idl/c/rpc.h.br.PN /usr/include/idl/rpc.idl.SH See Alsointro(3ncs), rpc_register(3ncs), rpc_register_object(3ncs), rpc_unregister(3ncs)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?