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

📄 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 页
字号:
transport providers will always return.B T_INVALIDfor this field..TP.I servtype.B XTI-TCPsupports only connection-oriented modes with orderly release.  TCPconforming transport service providers will return.BR T_COTS_ORD ..TP.I flags.B XTI-TCPsupports orderly release but does not support orderly release data anddoes not support sending null data.  TCP conforming transport serviceproviders will not return.B T_ORDRELDATAor.B T_SNDZEROflags.  TCP conforming transport service providers may return the.B XPG4_1flag..\".\".SS t_listen\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_listen (3)with the additional considerations described here..PPUpon successful return.BR t_listen (3)indicates an existing connection and not a connection indication.  Since userdata cannot be exchanged during the connection establishment phase,.I call->udata.maxlenmust be set to zero (0) before the call to.BR t_listen (3).The.I call->addrstructure contains the remote calling socket..PP.B XTI-TCPdoes not support the same semantics with regard to indication ofconnections, acceptance of indicated connections, and negotiation of optionsduring connection establishment.  This is because the connection can beinternally accepted before an indication is given to the XTI/TLI user.  To be ableto establish proposed values of options of end-to-end significance before aconnection is accepted, the proposed values of options must be set on thetransport endpoint upon which the XTI/TLI user is listening with.BR t_listen (3)rather than being responded to at the time that the connection is acceptedwith.BR t_accept (3).This makes the semantics of these XTI/TLI functions somewhat different than isexperienced for ISO/OSI conforming protocols.  This characteristic of usingXTI/TLI for internet protocols is described in XNS 5.2..[xns 5.2.].PPSome TCP options of end-to-end significance should be set before a call to.BR t_listen (3)using.BR t_optmgmt (3)as follows:.PPIn addition, any of the options described under.BR t_accept (3),above, may be set with.BR t_optmgmt (3)before the call to.BR t_listen (3)..\".\".SS t_look\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_open (3)with the additional considerations described here..PPAs soon as a segment with the TCP urgent pointer set enters the TCP receivebuffer, the event.B T_EXDATAin indicated..B T_EXDATAremains set until all data up to the byte pointed to by the TCP urgent pointerhas been received.  If the urgent pointer si updated, and the user has not yetreceived the byte previously pointed to by the urgent pointer, the update isinvisible to the user..\".\".SS t_open\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_open (3)with the additional considerations described here..PP.BR t_open (3)is called as the first step in the initialization of a transport endpoint.This function returns various default characteristics of the underlyingtransport protocol by setting fields in the.B t_infostructure.  The following should be the values returned by the call to.BR t_open (3)and.BR t_getinfo (3)with the TCP transport provider..PP.TScenter tab(:);l|c|c._Parameters:Before call:After call_name:x:/oflag:x:/info->addr:/:sizeof(struct sockaddr_in)info->options:/:xinfo->tsdu:/:0info->etsdu:/:T_INFINITEinfo->connect:/:T_INVALIDinfo->discon:/:T_INVALIDinfo->servtype:/:T_COTS_ORDinfo->flags:/:0_.TE.PPThe information returned in the.I infoparameter to this XTI/TLI call has the same considerations as the.I infoparameter returned in the call to.BR t_getinfo (3),described above..\".\".SS t_optmgmt\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_optmgmt (3)with the additional considerations described here..PPThe options that may be set, retrieved or negotiated using the XTI/TLI librarycall are described under.RI \*(lq OPTIONS \*(rq,above..\".\".SS t_rcvconnect\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_rcvconnect (3)with the additional considerations described here..PPSince user data cannot be exchanged during the connection establishment phase,.I call->udata.maxlenmust be set to zero (0) before the call to.BR t_rcvconnect (3).On return, the.I call->addrstructure contains the address of the remote calling endpoint..PP.BR t_rcvconnect (3)will return all options of end-to-end significance indicating theirnegotiation status in the.I statusfield of the returned option.  Options of end-to-end significance that willalways be returned are as follows:.PPOptions of local significance will only be returned if their negotiation wasrequested in the corresponding call to.BR t_connect (3).Options of local significance that can be negotiated during connectionestablishment are as follows:.\".\".SS t_rcvdis\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_rcvdis (3)with the additional considerations described here..PPSince data cannot be sent with a disconnect,.I call->udata.lenmust be set to zero (0)..PP.B XTI-TCPdoes not support disconnection data and the.I dis->udataparameter must always be empty..PP\.I dis->reasonwill either be a negative.BR UNIX \(rgerror code, or a  TCP protocol-specific error code as follows:.PPFor TCP, a disconnect indication may be received associated with a connectionindication before the connection indication is accepted or refused.  In thiscase,.I dis->sequencewill be set appropriately..PP.I dis->reasoncan also return the following negative error numbers:.TP \w'[ECONNABORTED]\(em'u.RB [ ECONNABORTED ]software related connection abort..PD 0.TP.RB [ ECONNRESET ]connection was reset by peer..TP.RB [ ECONNREFUSED ]connection was refused by peer..TP.RB [ ETIMEDOUT ]connection timed out..TP.RB [ EPROTO ]connection aborted due to protocol error..TP.RB [ ENETDOWN ]network is down..TP.RB [ ENETUNREACH ]network is unreachable..TP.RB [ ENETRESET ]network dropped connection because of reset..TP.RB [ EHOSTDOWN ]the destination host is down..TP.RB [ EHOSTUNREACH ]no route to destination host..TP.RB [ ESHUTDOWN ]SYN received while shutting down..PD.\".\".SS t_rcv\fR(3), \fBt_rcvv\fR(3).PP.B XTI-TCPsupports these XTI/TLI library calls as described in.BR t_rcv "(3) and " t_rcvvwith the additional considerations described here..PPThe.B T_MOREflag should be ignored if normal data is delivered.  If a byte in the datastream is pointed to by the TCP urgent pointer, as many bytes as possiblepreceding this marked byte and the marked byte itself are denoted as urgentdata and are received with the.BR T_EXPEDITEDflag set.  If the buffer supplied by the user is too small to hold all urgentdata, the.B T_MOREflag will be set, indicating that urgent data still remains to be read.  Notethat the number of bytes received with the.B T_EXPEDITEDflag set is not necessarily equal to the number of bytes sent by the peer userwith the.B T_EXPEDITEDflag set..PPWhen data is received using these XTI/TLI library calls, the.I flagsparameter will not have the.B T_MOREflag bit set.The.I flagsparameter will have the.B T_EXPEDITEDflag bit set if the data was sent out-of-band..PPData received with these XTI/TLI library calls, or using.BR read "(2) or " readv (2),will set the.IR T_IP_OPTIONS ", " T_IP_TOS " and " T_IP_TTLto the option values associated with the read data if the local options (XXX)are set for the transport endpoint..PPReads using.BR read "(2) or " readv (2)are stream based reads of normal (in-band) data.  For additional.BR read "(2) or " readv (2)behavior, see the.IR I_SRDOPT " and " I_GRDOPTinput output controls under.BR streamio (7).For advanced.BR read "(2) and " readv (2)support, use the.BR tirdwr (4)pushable module..\".\".SS t_rcvreldata\fR(3).PP.B XTI-TCPdoes not support a orderly release with data and this XTI/TLI library call willreturn a.I t_errnovalue of.RB [ TNOTSUPPORT ]..\".\".SS t_rcvrel\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_rcvrel (3)without modification..BR t_rcvrel (3)is preferred over.BR t_snddis (3)for disconnecting an established connection (i.e. a connection in the.B T_DATAXFERstate..\".\".SS t_rcvudata\fR(3), \fBt_rcvvudata\fR(3).PP.B XTI-TCPdoes not support a connection-less mode and these XTI/TLI library calls willreturn a.I t_errnovalue of.RB [ TNOTSUPPORT ].For a connection-less mode service, see.BR xti_udp (3)..\".\".SS t_rcvuderr\fR(3).PP.B XTI-TCPdoes not support a connection-less mode and these XTI/TLI library calls willreturn a.I t_errnovalue of.RB [ TNOTSUPPORT ].For a connection-less mode service, see.BR xti_udp (3)..\".\".SS t_snddis\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_snddis (3)with the additional considerations described here..PPSince data may not be sent with a disconnect,.I call->udata.lenmust be set to zero (0)..PP.B XTI-TCPdoes not support disconnection from specified responding addresses.Therefore, the.I call->addrparameter should be empty and will always be ignored.  TCP does not supportdisconnect data or disconnect options.  The parameters.I call->udataand.I call->optmust always be empty..B XTI-TCPdoes not support refusal of connection indications, and the.I call->sequenceparameter is populated as described in.BR t_snddis (3)..\".\".SS t_snd\fR(3), \fBt_sndv\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_snd "(3) and " t_sndv (3)with the additional considerations described here..PPWhen data is send using these XTI/TLI library calls, the.B T_MOREflag bit in the.I flagsparameter should always be set and will be ignored by the transport serviceprovider.The.B T_EXPEDITEDflag bit should be set in the.I flagsparameter if the data to be sent is out-of-band data..PPWrites using.BR write "(2) or " writev (2)are stream based writes of normal (in-band) data.  For additional.BR write "(2) or " writev (2)behavior, see the.IR I_SWROPT " and " I_GWROPTinput output controls under.BR streamio (7).For advanced.BR write "(2) and " writev (2)support, use the.BR tirdwr (4)pushable module..\".\".SS t_sndreldata\fR(3).PP.B XTI-TCPdoes not support a orderly release with data and this XTI/TLI library call willreturn a.I t_errnovalue of.RB [ TNOTSUPPORT ]..\".\".SS t_sndrel\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_sndrel (3)without modification..\".\".SS t_sndudata\fR(3), \fBt_sndvudata\fR(3).PP.B XTI-TCPdoes not support a connection-less mode and these XTI/TLI library calls willreturn a.I t_errnovalue of.RB [ TNOTSUPPORT ].For a connection-less mode service, see.BR xti_udp (3)..\".\".SS t_unbind\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_rcvrel (3)with the additional considerations described here..\".\".SH "BUGS".PPAlthough.BR XTI-TCPhas no known bugs, the.BR INET (4)implementation of.B XTI-TCPhas not been conformance tested..\".\".SH "CAVEATS".PPIn support of the.BR sockets (3)library for.BR tpi (7)transport providers, the options described here have been made compatible withthe socket options described in.BR tcp (7).As a result, depending on the release of .BR INET (4),the XTI/TLI options described might not be compatible with the options describedhere..PPThe.B Linuxsocket version of TCP described in.BR tcp (7),accessed using the TPI interface of the.B strinetpackage described in.BR INET (4),supports all of the options described here..PPEarlier version of the.BR INET (4)driver did not support wildcard binds.  If an attempt was made to bind to awildcard address or port number, the bind would fail with.RB [ TNOADDR ].While this is correct behavior, it was not consistent with other.B XTI-TCPimplemetnations.  Recent versions of the.BR INET (4)driver include the ability to bind to wildcards or to request that thetransport service provider asign a suitable address..\".\".SH "SEE ALSO".PP.BR INET (4),.BR read (2),.BR readv (2),.BR tcp (4),.BR tcp (7),.BR sockets (3),.BR t_accept (3),.BR t_connect (3),.BR T_CONN_REQ (7),.BR tcp (7),.BR t_errno (3),.BR t_getinfo (3),.BR timod (4),.BR tirdwr (4),.BR t_listen (3),.BR T_OPTDATA_IND (7),.BR t_optmgmt (3),.BR t_rcvconnect (3),.BR t_snddis (3),.BR write (2),.BR writev (2),.BR xnet (3),.BR xti (3),.BR xti_ip (3),.BR xti_tcp (3)..\".\".SH "DEVICES".PPThere is one TCP device providing the Transport Provider Interface thatprovide TCP conforming TPI devices as follows:.\".\".TP.IR /dev/tcp ", " /dev/inet/tcpFor more information on the TPI TCP device, see.BR tcp (4)..\".\".SH "VERSIONS".PPThe.B TCP-TPIdriver is specific to the.B OpenSS7stack.This is an unofficial Corrigendum to XNS 5.2 Revision 2..[xns.].\".\".[$LIST$.].T4

⌨️ 快捷键说明

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