rpc_inq_object.3ncs

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

3NCS
87
字号
.TH rpc_inq_object 3ncs.SH Namerpc_inq_object \- return the object UUID represented by an RPChandle (client or server).SH Syntax.nf#include <idl/c/rpc.h>void rpc_$inq_object(\fIhandle, object, status\fP)handle_t \fIhandle\fP;uuid_$t *\fIobject\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$inq_object(\fR.\"	\fBin \fIhandle\fB: handle_t;\fR.\"	\fBout \fIobject\fB: uuid_$t;\fR.\"	\fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 20\fIhandle\fRAn RPC handle..TP 20\fIobject\fRThe UUID of the object identified by \fIhandle\fR..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_$inq_objectroutine enables a client or server to determinethe particular object that a handle represents..NXR "Interface to the Remote Procedure Call" "rpc_inq_object".PPIf a server exports an interface through which clients can access several objects,it can use .PN rpc_$inq_objectto determine the object requested in a call.This routine requires an RPC handle as input,so the server can make the call only if the interface uses explicit handles (that is, if each operation in the interface has a handle parameter).If the interface uses an implicit handle,the handle identifier is not passed to the server..SH ExamplesA database server that manages multiple databases must determinethe particular database to be accessed whenever it receives a remote procedure call.Each manager routine makes the following call;the routine then uses the returned UUID to identify the database to beaccessed:.EXrpc_$inq_object (handle, &db_uuid, &status);.EE.SH DiagnosticsThis section lists status codes for errors returned by this .PN rpc_$routine in.PN status\&.all ..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_$not_in_call\fRAn internal error..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)

⌨️ 快捷键说明

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