📄 t_sndrel.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>t_sndrel</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4>NAME</h4><blockquote>t_sndrel - initiate an orderly release</blockquote><h4>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="xti.h.html">xti.h</a>>int t_sndrel( int fd)</code></pre></blockquote><h4>DESCRIPTION</h4><blockquote><pre><P><table bordercolor=#000000 border=1 align=center><tr valign=top><th align=center><b>Parameters</b><th align=center><b>Before call</b><th align=center><b>After call</b><tr valign=top><td align=left>fd<td align=center>x<td align=center>/</table></pre><p>For transport providers of type T_COTS_ORD,this function is used to initiate an orderly release of the outgoingdirection of data transferand indicates to the transport provider thatthe transport user has no more data to send.The argument<I>fd</I>identifies the local transport endpoint where the connection exists.After calling<i>t_sndrel()</i>,the user may not send any more data over the connection.However, a user may continue to receive data if anorderly release indication has not been received.For transport providers of types other than T_COTS_ORD,this function fails with error [TNOTSUPPORT].</blockquote><h4>VALID STATES</h4><blockquote>T_DATAXFER,T_INREL</blockquote><h4>ERRORS</h4><blockquote>On failure,<I>t_errno</I>is set to one of the following:<dl compact><dt>[TBADF]<dd>The specified file descriptor does not refer to a transport endpoint.<dt>[TFLOW]<dd>O_NONBLOCKwas set, butthe flow control mechanism prevented the transport provider fromaccepting the function at this time.<dt>[TLOOK]<dd>An asynchronous event has occurred on this transport endpoint and requiresimmediate attention.<dt>[TNOTSUPPORT]<dd>This function is not supported by the underlying transportprovider.<dt>[TOUTSTATE]<dd>The communications endpoint referenced by <I>fd</I>is not in one of the states in which a call to this function is valid.<dt>[TPROTO]<dd>This error indicates that a communication problem has been detected betweenXTI and the transport provider for which there is no other suitable XTIerror<I>(t_errno)</I>.<dt>[TSYSERR]<dd>A system error has occurred during execution of this function.</dl></blockquote><h4>RETURN VALUE</h4><blockquote>Upon successful completion, a value of 0 is returned. Otherwise,a value of -1 is returned and<I>t_errno</I>is set to indicate an error.</blockquote><h4>SEE ALSO</h4><blockquote><i><a href="t_getinfo.html">t_getinfo()</a></i>,<i><a href="t_open.html">t_open()</a></i>,<i><a href="t_rcvrel.html">t_rcvrel()</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -