📄 xti_tcp.3.man
字号:
.I qlenof zero and can be negotiated with.BR t_optmgmt (3)or.BR t_connect (3)..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_LINGER2Life time of orphaned FIN-WAIT-2 state.This option determines the amount of time (in seconds) that a TCP connectionwill be allowed to persist in the half-closed state before aborting theconnection. It is useful for servers that may otherwise accumulate a largenumber of half-closed TCP connections, exhausting system or network resources..RS.PPThis option may be negotiated in any state; however, the value will not beeffective until an orderly release is initiated with a.BR t_sndrel (3)call..PPThis options is formatted as a.BR t_uscalar_t .It can take on any positive, or 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_DEFER_ACCEPTWake up listener only when data arrives.This option controls the behaviour of the implementation in response to the.BR t_listen (3)call. When set to.BR T_NO ,as is normally the case,.BR t_listen (3)will return a connection indication as soon as an incoming TCP connection isestablished. When negotiated to.BR T_YES ,.BR t_listen (3)will return a connection indication only after data is first received on anestablished incoming TCP connection..RS.PPThis option can only be negotiated in the.BR T_IDLEstate for a stream bound with.I qlengreater than zero. This option may be set on a listening stream using.BR t_optmgmt (3)prior to a call to.BR t_listen (3)in fitting with.B XTI-TCPconnection indication options negotiation..PPThis option is formatted as a.BR t_uscalar_t .It can take on values.BR T_YES " and " T_NO .This option is not an.IR "absolute requirement" ..RE.TP.B T_TCP_WINDOW_CLAMPBound advertised window.This option specifies an upper bound on the advertised receive window. Valuesgreater that the actual or effective receive window size will be ignored..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_INFOInformation about this connection..RS.PPThis option is read-only and can be read with a call to.BR t_optmgmt (3)in any state..PPThis option is formatted as a.B t_tcp_infostructure, formatted as follows:.PP.nf\fC\s-1\struct t_tcp_info { u_char_t tcpi_state; u_char_t tcpi_ca_state; u_char_t tcpi_retransmits; u_char_t tcpi_probes; u_char_t tcpi_backoff; u_char_t tcpi_options; u_char_t tcpi_snd_wscale:4, tcpi_rcv_wscale:4; uint32_t tcpi_rto; uint32_t tcpi_ato; uint32_t tcpi_snd_mss; uint32_t tcpi_rcv_mss; uint32_t tcpi_unacked; uint32_t tcpi_sacked; uint32_t tcpi_lost; uint32_t tcpi_retrans; uint32_t tcpi_fackets; /* Times. */ uint32_t tcpi_last_data_sent; uint32_t tcpi_last_ack_sent; /* Not remembered, sorry. */ uint32_t tcpi_last_data_recv; uint32_t tcpi_last_ack_recv; /* Metrics. */ uint32_t tcpi_pmtu; uint32_t tcpi_rcv_ssthresh; uint32_t tcpi_rtt; uint32_t tcpi_rttvar; uint32_t tcpi_snd_ssthresh; uint32_t tcpi_snd_cwnd; uint32_t tcpi_advmss; uint32_t tcpi_reordering;};\s+1\fP.fi.TP.I tcpi_state.PD 0.TP.I tcpi_ca_state.RS.TP.B TCP_CA_Open.TP.B TCP_CA_Disorder.TP.B TCP_CA_CWR.TP.B TCP_CA_Recovery.TP.B TCP_CA_Loss.RE.TP.I tcpi_retransmits.TP.I tcpi_probes.TP.I tcpi_backoff.TP.I tcpi_options.TP.I tcpi_snd_wscale.TP.I tcpi_rcv_wscale.TP.I tcpi_rto.TP.I tcpi_ato.TP.I tcpi_snd_mss.TP.I tcpi_rcv_mss.TP.I tcpi_unacked.TP.I tcpi_sacked.TP.I tcpi_lost.TP.I tcpi_retrans.TP.I tcpi_fackets.TP.I tcpi_last_data_sent.TP.I tcpi_last_ack_sent.TP.I tcpi_last_data_recv.TP.I tcpi_last_ack_recv.TP.I tcpi_pmtu.TP.I tcpi_rcv_ssthresh.TP.I tcpi_rtt.TP.I tcpi_rttvar.TP.I tcpi_snd_ssthresh.TP.I tcpi_snd_cwnd.TP.I tcpi_advmss.TP.I tcpi_reordering.PD.RE.TP.B T_TCP_QUICKACKBlock or reenable quick acks..RS.PPThis option is formatted as a.BR t_uscalar_t .It can take on values.BR T_YES " or " T_NO .This option is not an.IR "absolute requirement" ..RE.\".\".SH FUNCTIONS.PP.B XTI-TCPsupports the XTI/TLI library functions as described in this section. Allconnection-oriented XTI/TLI library calls are supported for TCP; however, somefeatures of the connection-oriented XTI/TLI library calls are supported by theunderlying transport service provider and some are not..\".\".SS t_accept\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_accept (3),with the additional considerations described here..PPIssuing.BR t_accept (3)assigns an already established connection to.IR resfd ..PPSince user data cannot be exchanged during the connection establishment phase,.I call->udata.lenmust be set to zero..PPWhen.RI ( "resfd != fd" ),the function.BR t_accept (3)is recommended to be called with.I resfdin the.B T_UNBNDstate, though an endpoint which is bound to any local address (in the.B T_IDLEstate) can also be used..PPAfter.BR t_accept (3)completes, the endpoint.I resfdwill represent a connected TCP endpoint whose complete binding essentially hasboth local and remote address components..PPIf file descriptor.I resfdwas unbound before calling.BR t_accept (3),after the call completes its local address binding would be to the sameprotocol address bound to.IR fd .If the file descriptor.I resfdwas bound to a local address before calling.BR t_accept (3),that local address binding is dissolved and the local address part of thebinding after.BR t_accept (3)completes would become the same as the address bound to.IR fd ..PPIf options with end-to-end significance.RB ( T_IP_OPTIONS " and " T_IP_TOS )are to be sent with the connection confirmation, the values of these optionsmust be set with.BR t_optmgmt (3)prior to the.B T_LISTENevent occurs. When the transport user detects a.B T_LISTENevent, TCP has already established the connection. Association-relatedoptions passed with.BR t_accept (3)become effective at once, but since the connection is already established,they are transmitted with subsequent IP datagrams sent out in the.B T_DATAXFERstate..PP.B XTI-TCPprovides a number of options, described in.RI \*(lq OPTIONS \*(rq,above, that may be included in this XTI/TLI call in the.I call->optparameter to change local and end-to-end characteristics of the transportendpoint accepting the connection. The options of end-to-end significancethat can be included in this XTI/TLI library call are:.TP.I T_IP_OPTIONS.TP.I T_IP_TOS.PPThe options of local significance that can be included in this XTI/TLI callinclude (other options of local significance may also be included):.TP.I XTI_DEBUG.TP.I XTI_LINGER.TP.I XTI_RCVBUF.TP.I XTI_RCVLOWAT.TP.I XTI_SNDBUF.TP.I XTI_SNDLOWAT.TP.I T_IP_TTL.TP.I T_IP_REUSEADDR.TP.I T_IP_DONTROUTE.TP.I T_TCP_NODELAY.TP.I T_TCP_MAXSEG.TP.I T_TCP_KEEPALIVE.TP.I T_TCP_KEEPIDLE.TP.I T_TCP_KEEPCNT.TP.I T_TCP_WINDOW_CLAMP.TP.I T_TCP_QUICKACK.\".\".SS t_bind\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_bind (3),with the additional considerations described here..PPThe.I addrfield of the.B t_bindstructure represents the local socket; that is, an address which specificallyincludes a port identifier..PPThe.BR INET (4)implementation treats port number zero (0) as a request to bind to anyunused port. Other than that value, the.I req->addr.sin_portpart of the binding is specific. The.I req->addr.sin_addr.in_addrpart of the binding can represent a single IP address or a wildcard binding toan address that could represent multiple IP addresses that are legal for thehost.RB ( INADDR_ANY )..PPUnder recent versions of.BR INET (4),.BR t_bind (3)called with a.B NULL.I reqargument is equivalent to binding to a wildcard port number with a wildcard IPaddress..PPUnder.BR INET (4),when bound to a wildcard port or IP address, assignment of a specific portnumber and IP address can be deferred until an incoming or outgoing connectionis initiated. Under these situations, any address returned in the.I retargument to.BR t_bind (3)or the.I locargument to.BR t_getprotaddr (3)will return the wildcard address and port number instead of an assignedaddress and port number.Only once a connection has been established will the local address returned by.BR t_getprotaddr (3)be assured to be an assigned address rather than a wildcard address..\".\".SS t_close\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as described in.BR t_close (3)without modification..PPThe.BR t_close (3)call will result in a.BR close (2)call on the descriptor of this XTI/TLI communication endpoint. If there are noother descriptors in this process which reference the communications endpoint,the.BR close (2)call will perform an orderly connection termination according to the rules ofa TCP CLOSE call on this transport endpoint as specified in the standards.I RFC 793.[rfc 793.]and.IR "RFC 1122" ..[rfc 1122.]If the.B XTI_LINGERoption is supported and is used to enable the linger option, the linger timewill affect the time an implementation lingers in the execution of.BR t_close (3)or.BR close (2).A linger time of zero (0) specified with the.B XTI_LINGERoption may cause an abortive release of a TCP connection, resulting in lostdata..\".\".SS t_connect\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as describe din.BR t_connect (3),with the additional considerations described here..PPThe.I sndcall->addrstructure specifies the remote socket. In the present version, the returnedaddress set in.I rcvcall->addrwill have the same value. Since user data cannot be exchanged during theconnection establishment phase,.I sndcall->udata.lenmust be set to zero (0).Note that the peer TCP, and not the peer transport user, confirms theconnection..PP.B XTI-TCPprovides a number of options, described in.RI \*(lq OPTIONS \*(rq,above, that may be included in this XTI/TLI call in the.I sndcall->optparameter to change local and end-to-end characteristics of the transportendpoint accepting the connection. The option of end-to-end significance thatcan be included in this XTI/TLI library call are:.TP.I T_IP_OPTIONS.TP.I T_IP_TOS.PPThe options of local significance that cne be included in this XTI/TLI callinclude (other options of local significance may also be included):.TP.I XTI_DEBUG.TP.I XTI_LINGER.TP.I XTI_RCVBUF.TP.I XTI_RCVLOWAT.TP.I XTI_SNDBUF.TP.I XTI_SNDLOWAT.TP.I T_IP_TTL.TP.I T_IP_REUSEADDR.TP.I T_IP_DONTROUTE.TP.I T_TCP_NODELAY.TP.I T_TCP_MAXSEG.TP.I T_TCP_KEEPALIVE.TP.I T_TCP_KEEPIDLE.TP.I T_TCP_KEEPCNT.TP.I T_TCP_WINDOW_CLAMP.TP.I T_TCP_QUICKACK.\".\".SS t_getinfo\fR(3).PP.B XTI-TCPsupports this XTI/TLI library call as describe din.BR t_connect (3)with the additional considerations described here..TP \w'servtype\(em'u.I addrFor compatibility with the.BR sockets (3)library,.B TCPuses a.BR sockaddr_instructured address (see.RI \*(lq "ADDRESS FORMAT" \*(rq,above). This size will be the size of a.B sockaddr_instructure..TP.I optionsThe maximum size of options is provider specific.The.B OpenSS7TCP driver.RB ( tcp (4))returns the maximum size of an option structure containing all TCP options..TP.I tsduThe maximum size of a transport service data unit. For TCP this is themaximum size of a message, considering that it may be segmented and sent inmultiple packets. For TCP this value could be.BR T_INFINITE ..TP.I etsduTCB supports the concept of sending expedited data as out-of-band data. TCPconforming transport providers will not return.B T_INVALIDfor this field. The maximum ETSDU size is a single character or 1 octet..TP.I connect.B XTI-TCPdoes not support the concept of connection data. TCP conforming transportproviders will always return.B T_INVALIDfor this field..TP.I discon.B XTI-TCPdoes not support the concept of diconnection data. TCP conforming
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -