t_getstate.3xti
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3XTI 代码 · 共 80 行
3XTI
80 行
.TH t_getstate 3xti.SH Namet_getstate \- get the current state .SH Syntax.B #include <xti.h>.br.sp 1.B int t_getstate(\fIfd\fB).br.B int \fIfd\fB;.SH Arguments.IP \fIfd\fR 10Identifies the local transport endpoint the current state isreturned from..SH DescriptionThe .PN t_getstate()function returns the current state of the transport providerassociated with the transport endpoint specified by \fIfd\fR..NXR "t_getstate system call".NXR "transport provider" "returning current state".PP.TStab(@);lfHB lfHB lfHBlfR lfR lfR ._.sp 4pParameters@Before Call@After Call.sp 4p_.sp 6pfd@x@/.sp 6p_.TE.PP.SH Return ValuesUpon successful completion, .PN t_getstate()returns the current state. On failure, a value of \-1 is returned, and \fBt_errno\fR is set to indicate theerror. The current state is one of the following:.IP T_UNBND 15Unbound.IP T_IDLE 15Idle.IP T_OUTCON 15Outgoing connection pending.IP T_INCON 15Incoming connection pending.IP T_DATAXFER 15Data transfer.IP T_OUTREL 15Outgoing orderly release (waiting for an orderly release indication).IP T_INREL 15Incoming orderly release (waiting to send an orderly release request).PPIf the provider is undergoing a state transition when .PN t_getstate()is called, the function fails..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. This error may be returned when the \fIfd\fR has been previously closed or an erroneous number has been passed tothe call..TP 20 [TSTATECHNG]The transport provider is undergoing a transient state change..TP 20[TNOTSUPPORT]This function is not supported by the current implementation of XTI. .TP 20[TSYSERR]A system error has occurred during execution of this function..SH See Alsot_open(3xti)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?