rpc_register.3ncs

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

3NCS
106
字号
.TH rpc_register 3ncs.SH Namerpc_register \- register an interface (server only).SH Syntax.nf#include <idl/c/rpc.h>void rpc_$register(\fIifspec, epv, status\fP)rpc_$if_spec_t *\fIifspec\fP;rpc_$epv_t \fIepv\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$register(\fR\"	\fBin \fIifspec\fB: rpc_$if_spec_t;\fR.\"	\fBin \fIepv\fB: rpc_$epv_t;\fR.\"	\fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 20\fIifspec\fRThe interface being registered. .TP 20\fIepv\fRThe entry point vector (EPV) for the operations in the interface.The EPV is always defined in the server stub that is generated bythe NIDL compiler from an interface definition..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_$registerroutine registers an interface with the RPCruntime library.  After an interface is registered,the RPC runtime library will pass requests for that interface to the server..NXR "Interface to the Remote Procedure Call" "rpc_register".PPYou can call .PN rpc_$registerseveral times with the same interface(for example, from various subroutines of the same server),but each call must specify the same EPV.Each registration increments a reference count for the registered interface;an equal number of .PN rpc_$unregisterroutines are then required to unregisterthe interface..SH ExamplesThe following statement registers the bank interface with the bank serverhost's RPC runtime library:.EXrpc_$register (&bank_$if_spec, bank_$server_epv, &status);.EE.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_$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..TP 20\fBrpc_$bad_pkt\fRThe server or client has received an ill-formed packet..SH Files.PN /usr/include/idl/c/rpc.h.br.PN /usr/include/idl/rpc.idl.SH See Alsointro(3ncs), rpc_register_mgr(3ncs), rpc_register_object(3ncs), rpc_unregister(3ncs)

⌨️ 快捷键说明

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