rpc_listen.3ncs

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

3NCS
91
字号
.TH rpc_listen 3ncs.SH Namerpc_listen \- listen for and handle remote procedure call (RPC)packets (server only).SH Syntax.nf#include <idl/c/rpc.h>void rpc_$listen(\fImax_calls, status\fP)unsigned long \fImax_calls\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$listen(\fR.\"	\fBin \fImax_calls\fB: unsigned32;\fR.\"	\fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 15\fImax_calls\fRThis value indicates the maximum number of callsthat the server is allowed to process concurrently.On ULTRIX systems, this value should be 1; any other value is ignoredand defaulted to one. .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_$listenroutine dispatches incoming remote procedure call requests to manager proceduresand returns the responses to the client..NXR "Remote Procedure Call" "rpc_listen"You must issue .PN rpc_$use_familyor .PN rpc_$use_family_wkbefore you use .PN rpc_$listen .This routine normally does not return.  A return from thisroutine indicates either an irrecoverable error, or that an.PN rpc_shutdowncall has been issued.  If.PN status\&.allis equal to.B status_$ok ,the assumption is that.PN rpc_$shutdownhas occurred..SH ExamplesListen for incoming remote procedure call requests..EXrpc_$listen (1, &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_$you_crashed\fRThis error can occur if a server has crashed and restarted.A client RPC runtime library sends the error to the serverif the client makes a remote procedure call before the server crashes,then receives a response after the server restarts..TP 20\fBrpc_$proto_error\fRAn internal protocol error..TP 20\fBrpc_$bad_pkt\fRThe server or client has received an ill-formed packet..SH Files.PN /usr/include/idl/c/rpc.h.br.PN /usr/include/idl/rpc.idl.br.PN /usr/include/idl/c/rpc.h.SH See Alsointro(3ncs), rpc_shutdown(3ncs)

⌨️ 快捷键说明

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