t_look.3xti
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3XTI 代码 · 共 84 行
3XTI
84 行
.TH t_look 3xti.SH Namet_look \- look at the current event on a transport endpoint.SH Syntax.B #include <xti.h>.br.sp 1.B int t_look(\fIfd\fB).br.B int \fIfd\fB;.SH Arguments.IP \fIfd\fR 10Identifies the transport endpoint where the current event is returned..SH DescriptionThis function returns the current event on the transport endpointspecified by \fIfd\fR. This function enables a transport provider tonotify a transport user of an asynchronous event when the user isissuing functions in synchronous mode. Certain events require immediatenotification of the user and are indicated by a specific error,[TLOOK], on the current or next function to be executed..NXR "t_look system call" .NXR "transport endpoint" "returning current event".NXR "transport endpoint" "polling for asynchronous events".PPThis function also enables a transport user to poll a transport endpointperiodically for asynchronous events..PP.TStab(@);lfHB lfHB lfHBlfR lfR lfR ._.sp 6pParameters@Before Call@After Call.sp 6p_.sp 6pfd@x@/.sp 6p_.TE.PP.sp 12p.SH Return ValuesUpon successful completion, .PN t_look() returns a value that indicateswhich of the allowable events has occurred or returns zero if no eventexists. One of the following events is returned:.RS 10.IP T_LISTEN 18 Connection indication received.IP T_CONNECT 18Connect confirmation received.IP T_DATA 18Normal data received.IP T_EXDATA 18Expedited data received.IP T_DISCONNECT 18Disconnect received.IP T_UDERR 18Datagram error indication.IP T_ORDREL 18Orderly release indication.IP T_GODATA 18Flow control restrictions on normal data flow have been lifted. Normal data can be sent again..IP T_GOEXDATA 18Flow control restrictions on expedited data flow have been lifted. Expedited data can be sent again..RE.PPOn failure, \-1 is returned, and \fBt_errno\fR is set to indicate the error..SH DiagnosticsOn failure, \fBt_errno \fR is set to one of the following:.TP 20[TBADF]The specified file descriptor does not refer to a transport endpoint..TP 20[TSYSERR]A system error has occurred during execution of this function..SH See Alsot_open(3xti),t_snd(3xti), t_sndudata(3xti)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?