rpc_use_family.3ncs

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

3NCS
103
字号
.TH rpc_use_family 3ncs.SH Namerpc_use_family \- create a socket of a specified address family for aremote procedure call (RPC) server (server only).SH Syntax#include <idl/c/rpc.h>void rpc_$use_family(\fIfamily, sockaddr, slength, status\fP).nfunsigned long \fIfamily\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(\fR.\"	\fBin \fIfamily\fB: unsigned32;\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.  The value must be oneof \fBsocket_$internet\fP or \fBsocket_$unspec\fP..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_familyroutine creates a socket for a server without specifying its port number.The RPC runtime software assigns a port number.If a server must listen on a particular well-known port,use .PN rpc_$use_family_wkto create the socket..NXR "Interface to the Remote Procedure Call" "rpc_use_family".PPA server listens on one socket per address family,regardless of how many interfaces that it exports.Therefore, servers should make this call once per supported addressfamily..SH ExamplesThe following statement creates a server's socket:.EXrpc_$use_family (family, &saddr, &slen, &status); \" updated 05dec88.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..br.ne 5.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_$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_wk(3ncs)

⌨️ 快捷键说明

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