⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xti_tcp.3.man

📁 This a separate release of the OpenSS7 X/Open XTI/TLI library, TLI modules (timod, tirdwr) and the I
💻 MAN
📖 第 1 页 / 共 3 页
字号:
'\" rtp.\" -*- nroff -*- vim: ft=nroff noautoindent nocindent nosmartindent.\".\" @(#) xti_tcp.3.man,v 1.1.2.1 2004/05/16 02:35:38 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:38 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 XTI-TCP 3 "2004/05/16 02:35:38" "strxnet-0_9_2-4" "X/Open Transport Interface".\".\".SH "NAME".B xti_tcp\- X/Open Transport Interface \- Corrigendum for Transmission Control Protocol (TCP) Conformance.\".\".SH SYNOPSIS.PP.B #include <xti.h>.br.B #include <xti_ip.h>.br.B #include <xti_tcp.h>.HP.BI "int " tcp_xtistr " = t_open(" \fR\*(lq/dev/tcp\*(rq\fI ", " flags );.\".\".SH DESCRIPTION.PPThis manual section describes the protocol-specific information that isrelevant for TCP transport providers.  This section also describes theprotocol-specific information that is relevant when TCP services are providedover an IP network using TCP..PPThis section also defines the data structures and constants required for TCPtransport providers that are exposed through the.B <xti_tcp.h>header file..\".\".SH "ADDRESS FORMAT".PPThe TCP address format is structured as follows:.PP.nf\fC\s-1\struct sockaddr_in {    sa_family_t         sin_family;  /* Address family */    unsigned short int  sin_port;    /* Port number */    struct in_addr      sin_addr;    /* Interned address */    /* padding */};\s+1\fP.fi.PPThe.B sockaddr_instructure contains the following members:.TP \w'sin_family\(em'u.I sin_familyThe address family.  Always set to.BR AF_INET " or " AF_UNSPEC ..PD 0.TP.I sin_portThe port number of the transport endpoint..TP.I sin_addrThe IP address of the transport endpoint..TP.I (padding)Padding to pad the size of the.B sockaddr_instructure to the size of a.B sockaddrstructure..PD.PPThe structure is padded to the size of a.BR sockaddrstructure..\".\".SH OPTIONS.PPOptions are formatted according to the.B t_opthdrstructure as described in.BR xti (3).An TCP transport provider compliant to this specification supports none, allor any subset of the options defined here.  An implementation may restrict theuse of any of these options by offering them only in a priviledged read-onlymode..PPAn TCP transport provider supports three levels of options.  These three levelsare described below..\".\".SS "XTI_GENERIC".PPOptions with this level are specific to the X/Open Transport Interface (XTI/TLI).[xti.]and are common to all transport providers.  For more information see.BR xti (3)..PPThe options defined with the option level.B XTI_GENERICare as follows:.TP.B XTI_DEBUGSets debugging flags for the stream.This option is formatted as an array of.BR t_uscalar_t .Legal values are implementation defined.For more information, see.BR xti (3)..TP.B XTI_LINGERSets whether, and the amount of time if, the stream will linger waiting forunsent data to be delivered.This option is formatted as a.B t_lingerstructure as follows:.RS.PP.nf\fC\s-1\struct t_linger {    t_scalar_t l_onoff;   /* option on/off */    t_scalar_t l_linger;  /* linger time */};\s+1\fP.fi.TP \w'l_linger\(em'u.I l_onoffSpecifies whether to linger.RB ( T_YES )or not.RB ( T_NO ).Legal values are.BR T_YES " and " T_NO ..TP.I l_lingerSpecifies the amount of time (in seconds) to linger.Legal values are.BR T_INFINITE ", " T_UNSPECand all positive numbers including zero..PPFor more information, see.BR xti (3)..RE.TP.B XTI_RCVBUFSpecifies the size, in bytes, of the receive buffer.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..TP.B XTI_RCVLOWATSpecifies the low water mark above which received data will be indicated anddelivered to the user.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..TP.B XTI_SNDBUFSpecifies the size, in bytes, of the transmit buffer.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..TP.B XTI_SNDLOWATSpecifies the low water mark above which queued data will be transmitted tothe peer.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..\".\".SS "T_INET_IP".PPOptions within this level are specific to the Internet Protocol (IP) and arecommon to all the protocol levels in IP.  For more information, see.BR xti_ip (3)..PPThe options defined with the option level.B T_INET_IPare as follows:.TP.B T_IP_OPTIONSProvides control for the T_IP OPTIONS field.  Used for debugging.This option is formatted as an array of.BR "unsigned char" ,up to 40 elements.For more information, see.BR xti_ip (3)..TP.B T_IP_TOSProvides control of the type-of-service byte present in each transmited T_IPpacket.This option is formated as an.BR "unsigned char" .Legal values can be generated with the.BR SET_TOS ()macro described in.BR xti_ip (3).For more information, see.BR xti_ip (3)..TP.B T_IP_TTLProvides control of the time-to-live byte present in each transmitted T_IPpacket.This option is formatted as an.BR "unsigned char" .Legal values are from 0 to 255.For more information, see.BR xti_ip (3)..TP.B T_IP_REUSEADDRAllows multiple non-listening binds to the same address.This option is format as a.BR "unsigned int" .Legal values are.BR T_YES " and " T_NO .For more information, see.BR xti_ip (3)..TP.B T_IP_DONTROUTEBypasses routing tables and routes directly to an interface.  Used fordebugging.This option is format as a.BR "unsigned int" .Legal values are.BR T_YES " and " T_NO .For more information, see.BR xti_ip (3)..TP.B T_IP_BROADCASTAllows broadcast addresses to be used.  This option is not applicable to TCPand is always set to.BR T_NO .This option is format as a.BR "unsigned int" .Legal values are.BR T_YES " and " T_NO .For more information, see.BR xti_ip (3)..\".\".SS "T_INET_TCP".PPOptions within this level are specific to the Transmission ControlProtocol (TCP) yet are used by protocol levels using TCP transport..PPThe options defined with the option level.B T_INET_TCPare as follows:.TP.B T_TCP_NODELAYUnder most circumstances, TCP sends data as soon as it is presented.  Whenoutstanding data hs not yet been acknowledged, it gathers small amounts ofoutput to be sent in a single packet once an acknowledgment is received.  Fora small number of clients, such a window system (for example,.IR "MIT X Window System" )that send a stream of mouse events which receive no replies, thispacketisation may cause significant delays. .B T_TCP_NODELAYis used to defeat this algorithm.  Legal option values are.B T_YES("don't delay") and.B T_NO("delay")..RS.PPThis option can be negotiated in any state; however, this option will not takeeffect until data is sent with.BR t_snd "(3) or " t_sndv (3),or unless data is already queued for transmission at the time that the optionis negotiated.  A value for this option can be proposed in.BR t_optmgmt "(3), " t_connect "(3) or " t_accept (3)..PPThis option is mutually exclusive with.BR T_TCP_CORK .Attempts to negotiate this option to.BR T_YESwhen.B T_TCP_CORKhas already been negotiated to.B T_YESwill fail..PPThis option is formatted as a.BR t_uscalar_t .It can take on values.BR T_YES " or " T_NO .This option is an.IR "absolute requirement" ..RE.TP.B T_TCP_MAXSEGThis option determines the maximum segment size for outgoing packets.  Valuesgreater than the association MTU are ignored and have no effect.  The valuedetermines the maximum size (in octets) above which TCP will fragment largerdata segments into smaller ones.  Normally this value is the connection MTUvalue minus the size of the current IP and TCP headers  If the transport usernegotiates this value to a lower value, the lower value will be used..RS.PPPer.IR "XNS 5.2" ,.[xns 5.2%P Appendix B.]this option is read-only.  It is used only to retrieve the maximum TCP segmentsize.  The write behavior described here is for compatibility with the.B Linux.BR tcp (7)implementation..PPThis option is formatted as a.BR t_uscalar_t .It can take on any positive value.This option is not an.IR "absolute requirement" .The implementation may impose lower and upper bounds on the value.  If theproposed value is less than the lower bound, the option will be negotiated tothe lower bound..RE.TP.B T_TCP_KEEPALIVEIf this option is set, a keep-alive timer is activated to monitor idleconnections that might no longer exist.  If a connection has been idle sincethe last keep-alive timeout, a keep-alive packet is sent to check if theconnection is still alive or broken..RS.PPKeep-alive packets are not an explicit feature of TCP, and this practice isnot universally accepted.  According to.I RFC 1122.[rfc 1122.]\*(lqa keep-alive mechanism should only be invoked in service applications thatmight otherwise hang indefinitely and consume resources unnecessarily if aclient crashes or aborts a connection during a network failure.\*(rq.PPThe option value consists of a.B t_kpalivestructure, with the following members:.PP.nf\fC\s-1\struct t_kpalive {    t_scalar_t kp_onoff;    /* option on/off */    t_scalar_t kp_timeout;  /* timeout in minutes */};\s+1\fP.fi.TP \w'kp_timeout\(em'u.I kp_onoffThe.I kp_onofffield determines whether keep-alive is activated and can assume values.BR T_NO " or " T_YES ..TP.I kp_timeoutThe.I kp_timeoutfield determines the frequency of keep-alive packets being sent, in minutes.The transport user can request the default value by setting the field to.BR T_UNSPEC .The default is implementation-dependent, but at least.B 120minutes (see.IR "RFC 1122" )..[rfc 1122.]Legal values for this field are.B T_UNSPECand all positive numbers..PPThe timeout value is not an.IR "absolute requirement" .The implementation may impose upper and lower limits on this value.  Requeststhat fall short of the lower limit may be negotiated to the lower limit.  Theuse of this option might be restricted to privileged users..PPThis option is formatted as.B t_kpalivestructure.  This option is an.IR "absolute requirement" ..RE.PPThe following options are not described in XTI/TLI.[xti.]or XNS 5.2.[xns 5.2.]literature, however, they are provided for compatibility with the socketoptions of the.B Linuxsocket implementation (see.BR tcp (7))..TP.B T_TCP_CORKNever send partially complete segments.This option determines whether to cork the transmission stream waiting forsubsequent transmission requewsts.  When set.RB ( T_YES ),this option permits a number of.BR t_snd (3)operations to be peformed without send the data subsequent to the cork.  Whenthe cork is released.RB ( T_NO ),all data will be permitted to proceed to tranmsission..RS.PPThis option can only be negotiated to.B T_YESif the option.B T_TCP_NODELAYhas been negotiated to.BR T_NO .Otherwise, negotiation will fail..PPThis option is formatted as a.BR t_uscalar_t .It can take on values.BR T_YES ,conveying that the transmission is corked, or,.BR T_NO ,conveying that transmission is uncorked.This option is not an.IR "absolute requirement" ..RE.TP.B T_TCP_KEEPIDLEStart keepalives after this period.This option determines the period of time, in seconds, that the endpoint willallow the connection to remain idle util initiating sending of keepalivepackets.Valid values are any positive value greater than zero (0)..RS.PPThis option is formatted as a.BR t_uscalar_t .It can take on any positive, non-zero value.This option is not an.IR "absolute requirement" .The implementation may impose upper and lower limits on the value.  Proposedvalues less than the lower limit will be negotiated to the lower limit..RE.TP.B T_TCP_KEEPCNTNumber of keepalives before death.This option determines the number of keepalives that will be sent withoutresponse before aborting the connection.Valid values are any positive value greater than zero (0)..RS.PPThis options is formatted as a.BR t_uscalar_t .It can take on any positive, non-zero value.This options is not an.IR "absolute requirement" .The implementation may impose upper and lower limits on the value.  Proposedvalues less than the lower limit will be negotiated to the lower limit..RE.TP.B T_TCP_SYNCNTNumber of SYN retransmits.This option determines the number of times that a SYN will be resent beforeabandoning transport connection establishment.Valid values are any positive value greater than zero (0)..RS.PPThis option is valid in state.B T_IDLEwith a

⌨️ 快捷键说明

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