t_rcvuderr.3xti

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

3XTI
104
字号
.TH t_rcvuderr 3xti.SH Namet_rcvuderr \- receive a unit error indication .SH Syntax .B #include <xti.h>.br.sp 1.B int t_rcvuderr(\fIfd, uderr\fB).br.B int \fIfd\fB;.br.B struct t_uderr \fI*uderr\fB;.SH Arguments.IP \fIfd\fR 10Identifies the local transport endpoint through which the error reportis received..IP \fIuderr\fR 10Points to a \fBt_uderr\fR structure containing the following members:.EXstruct netbuf \fIaddr\fP;struct netbuf \fIopt\fP;long \fIerror\fR;.EE.IPOn return from this call, the members have the following meanings:.RS 10.IP \fIaddr\fP 12Specifies the destination protocol address of the erroneous data unit..IP \fIopt\fPIdentifies protocol-specific options that were associated with the data unit..IP \fIerror\fR	Specifies a protocol-dependent error code..RE.SH DescriptionThis function is used in connectionless mode to receive informationconcerning an error on a previously sent data unit and should be issuedfollowing a unit data error indication. It informs the transport userthat a data unit with a specific destination address and protocoloptions produced an error..NXR "t_tcvuderr system call" .NXR "connectionless mode" "receiving error information".PPThe \fImaxlen\fR field of \fIaddr\fR and \fIopt\fR must be set beforeissuing this function to indicate the maximum size of the buffer foreach..PPIf the user does not care to identify the data unit that produced anerror, \fIuderr\fR may be set to NULL, and .PN t_rcvuderr() simply clears the error indication without reporting any information to theuser..sp 10.PP.TStab(@);lfHB lfHB lfHBlfR  lfR  lfR ._.sp 6pParameters@Before Call@After Call.sp 6p_.sp 6pfd@x@/uderr->addr.maxlen@x@/uderr->addr.len@/@xuderr->addr.buf@x@(x)uderr->opt.maxlen@x@/uderr->opt.len@/@xuderr->opt.buf@x@(x)uderr->error@/@x.sp 6p_.TE.PP.sp 12p.SH Return ValuesUpon successful completion, a value of 0 is returned. On failure,  avalue of \-1 is returned, and \fBt_errno\fR is set to indicate theerror..SH DiagnosticsOn failure, \fBt_errno\fR is set to one of the following:.TP 20[BADF]The specified file descriptor does not refer to a transport endpoint..TP 20 [TNOUDERR]No unit data error indication currently exists on the specifiedtransport endpoint..TP 20[TBUFOVFLW]The number of bytes allocated for the incoming protocol address oroptions is not sufficient to store the information. The unit data errorinformation to be returned in \fIuderr\fR will be discarded..TP 20[TNOTSUPPORT]This function is not supported by the underlying transport provider. .TP 20[TSYSERR]A system error has occurred during execution of this function..SH See Alsot_rcvudata(3xti), t_sndudata(3xti) 

⌨️ 快捷键说明

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