📄 t_snd.3.man
字号:
'\" rtp.\" -*- nroff -*- vim: ft=nroff noautoindent nocindent nosmartindent.\".\" @(#) t_snd.3.man,v 0.9.2.2 2004/05/16 02:35:37 brian Exp.\".\" =========================================================================.\".\" Copyright (C) 2001-2004 OpenSS7 Corporation <www.openss7.com>.\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date. The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein. The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" -------------------------------------------------------------------------.\".\" U.S. GOVERNMENT RESTRICTED RIGHTS. If you are licensing this Software.\" on behalf of the U.S. Government ("Government"), the following.\" provisions apply to you. If the Software is supplied by the Department.\" of Defense ("DoD"), it is classified as "Commercial Computer Software".\" under paragraph 252.227-7014 of the DoD Supplement to the Federal.\" Acquisition Regulations ("DFARS") (or any successor regulations) and the.\" Government is acquiring only the license rights granted herein (the.\" license rights customarily provided to non-Government users). If the.\" Software is supplied to any unit or agency of the Government other than.\" DoD, it is classified as "Restricted Computer Software" and the.\" Government's rights in the Software are defined in paragraph 52.227-19.\" of the Federal Acquisition Regulations ("FAR") (or any success.\" regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the.\" NASA Supplement to the FAR (or any successor regulations)..\".\" =========================================================================.\" .\" Commercial licensing and support of this software is available from.\" OpenSS7 Corporation at a fee. See http://www.openss7.com/.\" .\" =========================================================================.\".\" Last Modified 2004/05/16 02:35:37 by brian.\".\" =========================================================================.so strxnet.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase strxnet.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".\".\".TH T_SND 3 "2004/05/16 02:35:37" "strxnet-0_9_2-4" "OpenSS7 XTI/TLI Library".\".\".SH NAME.B t_snd\- send transport data.\".\".SH SYNOPSIS.PP.B #include <xti.h>.HP 8.BI "int t_snd(int " fd ", char *" buf ", unsigned int " nbytes ", int " flags );.\".\".SH ARGUMENTS.PP.TP.I fdspecifies the local transport endpoint upon which to send data..TP.I bufis a pointer to a buffer containing the data to send..TP.I nbytesis the number of bytes in the user supplied buffer..TP.I flagsspecify additional information about the data to send..\".\".SH DESCRIPTION.PP.BR t_snd ()sends connection oriented data from the local transport endpoint specified by.IR fd ..PPThe.I flagsargument can be a bitwise OR of any of the following flags:.TP.B T_MOREspecifies that the next send operation will include data belonging to the sametransport service data unit or expedited transport service data unit..TP.B T_EXPEDITEDspecifies that the data is part of an expedited transport service data unit.When not set, specifies that the data is part of a normal transport servicedata unit..TP.B T_PUSHspecifies that any accumulated data should be sent without delay..\".\".SH CAVEATS.PP.BR t_snd ()is only valid in the.BR T_DATAXFER " and " T_INRELstates..PP.BR t_snd ()is only valid for transport service providers of service type.BR T_COTS " or " T_COTS_ORD ..PPIn synchronous mode,.BR t_snd ()blocks until there is sufficent room to buffer the message for transmissionconsdering flow control. In asynchronous mode where there is insufficientroom to buffer the data for transmission considering flow control,.BR t_snd ()fails, returns -1 and sets.IR t_errno (3)to.RB [ TFLOW ]..PP.BR t_snd ()is functionally equivalent to.BR write (2),and the two functions can be used interchangeably; however,.BR write (2)does not maintain.IR t_errno (3)..\".\".SH "RETURN VALUE".PPUpon success,.BR t_snd ()returns zero (0) or a positive integer reflecting the number of bytes sent.Upon failure,.BR t_snd ()returns -1 and sets.IR t_errno (3)to an appropriate error number..\".\".SH ERRORS.PPWhen.BR t_snd ()fails, it returns -1 and sets.IR t_errno (3)to an appropriate error number as follows:.TP \w'[TNOTSUPPORT]\(em'u.RB [ TBADDATA ]The amount of data specified for the call and underlying transport serviceprovider was invalid (i.e. was outside the protocol limits). See.BR t_getinfo (3)and.BR t_open (3)for more information..TP.RB [ TBADF ].I fdis invalid..TP.RB [ TBADFLAG ]The argument.I flagscontains invalid flags (i.e. flags other than.BR T_MORE ", " T_EXPEDITED ", " T_PUSH )..TP.RB [ TFLOW ]The call would block due to flow control and.I fdis in asynchronous mode (i.e..BR O_NONBLOCK " or " O_NDELAYwas set with.BR t_open (3)or.BR fcntl (2))..TP.RB [ TLOOK ]An asynchronous event occured before the call could complete. See.BR t_look (3)for more information..TP.RB [ TNOTSUPPORT ]The call requires the use of a TLI primitive not supported by the underlying transport provider.This can happen when the transport service provider is of service type.BR T_CLTS ..TP.RB [ TOUTSTATE ]The call was issued with the interface in a state other than.BR T_DATAXFER " or " T_INREL ..TP.RB [ TPROTO ]A protocol error occured between the XTI/TLI library and the underlying transport provider..TP.RB [ TSYSERR ]A.B Linuxsystem error occured and the.B Linuxerror number is set in.IR errno (3)..\".\".SH "SEE ALSO".PP.BR errno (3),.BR fcntl (2),.BR t_errno (3),.BR t_getinfo (3),.BR t_look (3),.BR t_open (3),.BR write (2)..\".\".SH "BUGS".PP.BR t_snd ()has no known bugs..BR t_snd ()has been tested for the described behavior using the.I /usr/bin/test-xnetconformance test program..\".\".SH "CONFORMING TO".PPXTI/TLI,.[XTI.]TPI,.[TPI Revision 2.0.0.]XPG5,XNS 5.2,.[xns.]SUSv2..[susv2.].\".\".[$LIST$.].T4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -