⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpc_use_family_wk.3ncs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3NCS
字号:
.TH rpc_use_family_wk 3ncs.SH Namerpc_use_family_wk \- create a socket with a well-known port for aremote procedure call (RPC) server (server only).SH Syntax#include <idl/c/rpc.h>void rpc_$use_family_wk(\fIfamily, ifspec, sockaddr, slength, status\fP).nfunsigned long \fIfamily\fP;rpc_$if_spec_t *\fIifspec\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_$use_family_wk(\fR.\"	\fBin \fIfamily\fB: unsigned32;\fR.\"	\fBin \fIifspec\fB: rpc_$if_spec_t;\fR.\"	\fBout \fIsockaddr\fB: socket_$addr_t;\fR.\"	\fBout \fIslength\fB: unsigned32;\fR.\"	\fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 15\fIfamily\fRThe address family of the socket to be created.This value corresponds to the communications protocol used to access the socketand determines how the sockaddr is expressed.  The value must be one of.B socket_$unspecor .B socket_$internet..TP 15\fIifspec\fRThe interface that will be registered by the server.Typically, this parameter is the interface.I if_specgenerated by the NIDL compiler from the interface definition;the well-known port is specified as an interface attribute..TP 15\fIsockaddr\fRThe socket address of the socket on which the server will listen..TP 15\fIslength\fRThe length, in bytes, of \fIsockaddr\fR..TP 15\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_$use_family_wkroutine creates a socketthat uses the port specified through the \fIif_spec\fR parameter.Use this routine to create a socket only ifa server must listen on a particular well-known port.Otherwise, use .PN rpc_$use_family ..NXR "Interface to the Remote Procedure Call" "rpc_use_famiyl_wk".PPA server listens on one socket per address family,regardless of how many interfaces that it exports.Therefore, servers that use well-known ports should make this callonce per supported address family..SH ExamplesThe following statement createsthe well-known socket identified by .PN sockaddrfor an array processor server:.EXrpc_$use_family_wk (socket_$internet, &matrix$if_spec,                       &sockaddr, &slen, &status);.EE.SH DiagnosticsThis section lists status codes for errors returned by this.PN rpc_$routine in.PN status\&.all ..TP 20\fBrpc_$cant_create_sock\fRThe RPC runtime library was unable to create a socket..TP 20\fBrpc_$not_in_call\fRAn internal error..TP 20\fBrpc_$proto_error\fRAn internal protocol error..TP 20\fBrpc_$too_many_sockets\fRThe server is trying to use more than the maximum number of sockets that is allowed;it has called .PN rpc_$use_familyor .PN rpc_$use_family_wktoo many times..TP 20\fBrpc_$bad_pkt\fRThe server or client has received an ill-formed packet..TP 20\fBrpc_$addr_in_use\fRThe address and port specified in an .PN rpc_$use_family_wkroutine are already in use.This is caused by multiple calls to .PN rpc_$use_family_wkwith the same well-known port..SH Files.PN /usr/include/idl/c/rpc.h.br.PN /usr/include/idl/rpc.idl.SH See Alsointro(3ncs), rpc_use_family(3ncs)

⌨️ 快捷键说明

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