rpc_register_object.3ncs
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3NCS 代码 · 共 97 行
3NCS
97 行
.TH rpc_register_object 3ncs.SH Namerpc_register_object \- register an object (server only).SH Syntax#include <idl/c/rpc.h>void rpc_$register_object(\fIobject, type, status\fP).nfuuid_$t *\fIobject\fP;uuid_$t *\fItype\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$register_object(\fR.\" \fBin \fIobject\fB: uuid_$t;\fR.\" \fBin \fItype\fB: uuid_$t;\fR.\" \fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP\fIobject\fRThe UUID of the object being registered..TP \fItype\fRThe UUID of the type of the object..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_$register_objectroutine declares that a server supports operations on a particular objectand declares the type of that object..NXR "Interface to the Remote Procedure Call" "rpc_register_object".PPA server must register objects with .PN rpc_$register_objectonly if it registers generic interfaces with .PN rpc_$register_mgr .When a server receives a call,the RPC runtime library searches forthe object identified in the call(that is the object that the client specified in the handle)among the objects registered by the server.If the object is found,the type of the object determineswhich of the manager EPVs should be used to operate on the 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_$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_mgr(3ncs), rpc_unregister(3ncs)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?