📄 rpc_set_async_ack.3ncs
字号:
.TH rpc_set_async_ack 3ncs.SH Namerpc_set_async_ack \- set or clear asynchronous-acknowledgement mode (client only).SH Syntax.nf#include <idl/c/rpc.h>void rpc_$set_async_ack (\fIstate\fP)unsigned long \fIstate\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/rpc.ins.pas'\fR.\".\"\fBprocedure rpc_$set_async_ack(\fR.\"\fBin \fIon\fB: unsigned32);\fR.\".DE.SH Arguments.TP 20.I stateIf "true" (nonzero), asynchronous-acknowledgement mode is set.If "false" (zero), synchronous-acknowledgement mode is set..SH DescriptionThe .PN rpc_$set_async_ack.NXR "Interface to the Remote Procedure Call" "rpc_set_async_ack"call sets or clearsasynchronous-acknowledgement mode in a client..PP.\".SS MS-DOS Systems and Systems with CPS.\"On MS-DOS systems and on systems that have Concurrent Programming Support,.\"\fBrpc_$set_async_ack\fR has no effect..\"These systems always use asynchronous-acknowledgement mode..\".SS Other SystemsSynchronous-acknowledgement mode is the default.Calling.PN rpc_$set_async_ackwith a nonzero value for .I statesets asynchronous-acknowledgement mode.Calling it with a zero value for .I statesets synchronous-acknowledgement mode..PPAfter a client makes a remote procedure call and receives a reply from a server,the RPC runtime library at the client acknowledges its receipt of the reply.This"reply acknowledgement"can occureither synchronously (before the runtime library returns to the caller)or asynchronously (after the runtime library returns to the caller)..PPIt is generally good to allow asynchronous reply acknowledgements.Asynchronous-acknowledgement mode can savethe client runtime library from making explicit reply acknowledgements,because after a client receives a reply,it may shortly issue another call that can act as an implicit acknowledgement..PPAsynchronous-acknowledgement mode requires that an"alarm"be set to go off sometime after the remote procedure call returns.Unfortunately, setting the alarm can cause two problems:.RS.IP 1 There may be only one alarm that can be set, and the applicationitself may be trying to use it..IP 2 If, at the time the alarm goes off, the application is blockedin a system call that is doing I/O to a"slow device" (such as a terminal),the system call will return an error (with the EINTR errno);the application may not be coded to expect this error.If neither of these problems exists,the application should set asynchronous-acknowledgement mode to getgreater efficiency..RE.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -