rpc_inq_binding.3ncs
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3NCS 代码 · 共 82 行
3NCS
82 行
.TH rpc_inq_binding 3ncs.SH Namerpc_inq_binding \- return the socket address represented by an RPChandle (client or server).SH Syntax.nf#include <idl/c/rpc.h>void rpc_$inq_binding(\fIhandle, sockaddr, slength, status\fP)handle_t \fIhandle\fP;socket_$addr_t *\fIsockaddr\fP;unsigned long *\fIslength\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$inq_binding(\fR.\" \fBin \fIhandle\fB: handle_t;\fR.\" \fBout \fIsockaddr\fB: socket_$addr_t;\fR.\" \fBout \fIslength\fB: unsigned32;\fR.\" \fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 20\fIhandle\fRAn RPC handle..TP 20\fIsockaddr\fRThe socket address represented by \fIhandle\fR..TP 20\fIslength\fRThe length, in bytes, of \fIsockaddr\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_bindingroutine enables a client to determine the socket address,and therefore the server, identified by an RPC handle.It is useful when a client uses an unbound handle in a remote procedure calland wishes to determine the particular server that responded to the call..NXR "Interface to the Remote Procedure Call" "rpc_inq_binding".SH ExamplesThe Location Broker administrative tool, .PN lb_admin ,uses the following statement to determine the GLB that last responded to alookup request:.EXrpc_$inq_binding(lb_$handle, &global_broker_addr, &global_broker_addr_len, &status);.EE.SH DiagnosticsThis section lists status codes for errors returned by this.PN rpc_$routine in.PN status\&.all ..TP 20\fBrpc_$not_in_call\fRAn internal error..TP 20\fBrpc_$proto_error\fRAn internal protocol error..TP 20\fBrpc_$unbound_handle\fRThe handle is not bound and does not represent a particular host address.Returned by .PN rpc_$inq_binding ..SH Files.PN /usr/include/idl/c/rpc.h.br.PN /usr/include/idl/rpc.idl.SH See Alsointro(3ncs), rpc_bind(3ncs), rpc_set_binding(3ncs)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?