📄 dl_connect_res.7
字号:
'\" rt.\" -*- nroff -*-.\".\" @(#) DL_CONNECT_RES.7,v 1.1.4.1 2004/01/12 23:45:11 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..\".\" =========================================================================.\".\" Modified 2004/01/12 23:45:11 by brian.\".\" =========================================================================.so lis.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase lis.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH DL_CONNECT_REQ 7 "2004/01/12 23:45:11" "LiS-2_16_18-8" "Linux STREAMS".SH NAME.B DL_CONNECT_RES (dl_connect_res_t)\- directs the DLS provider to accept a connect request from a remote(calling) DLS user on adesignated stream..SH DESCRIPTION.B DL_CONNECT_RESdirects the DLS provider to accept a connect request from a remote (calling)DLS user on adesignated stream. The DLS user may accept the connection on thesame stream where the connect indication arrived, or on a different streamthat has been previously bound. The response contains the correlation numberfrom the corresponding.BR DL_CONNECT_IND ,selected quality of service parameters, and an indication of the stream onwhich to accept the connection..PPAfter issuing this primitive, the DLS user may immediately begintransferring data using the.BR DL_DATA_REQ (7)primitive. If the DLS provider receives one or more.BR DL_DATA_REQ (7)primitives from the local DLS user before it has completed connectionestablishment, however, it must queue the data transfer requests internallyuntil the connection is successfully established..SH SYNOPSISThe message consists of one.B M_PROTOmessage block containing the structure shown below..sp.nf\fC\s-1\typedef struct { t_uscalar_t dl_primitive; t_uscalar_t dl_correlation; t_uscalar_t dl_resp_token; t_uscalar_t dl_qos_length; t_uscalar_t dl_qos_offset; t_uscalar_t dl_growth;} dl_connect_res_t;\fC\s+1.fi.SH PARAMETERS.TP.I dl_primitiveconveys.BR DL_CONNECT_RES ..TP.I dl_correlationconveys the correlation number that was received with the.BR DL_CONNECT_IND (7)associated with the connection request. The DLS provider will use thecorrelation number to identify the connect indication to which the DLS useris responding..TP.I dl_resp_tokenif non-zero, conveys the token associated with the responding stream onwhich the DLS provider is to establish the connection; this stream mustbe in the state.BR DL_IDLE .The token value for a stream can be obtained by issuing a.BR DL_TOKEN_REQ (7)on that stream. If the DLS user is accepting the connection on the streamwhere the connect indication arrived, this value must be zero. See.I \*(lqConnection Establishment,\*(rq.BR dlpi (7),for a description of the connection responsemodel..TP.I dl_qos_lengthconveys the length of the quality of service parameter values selected bythe called DLS user. The selected QOS values are conveyed in the appropriatestructure as defined in.I \*(lqQOS Data Structures,\*(rq.BR dlpi (7).A full specification of these QOS parameters and rules for negotiating theirvalues is presented in.I \*(lqQuality of Data Link Service,\*(rq.BR dlpi (7).If the DLS user does not care which value is selected for a particular QOSparameter, the value.B DL_QOS_DONT_CAREmay be specified. If the DLS user does not care which values are selected forall QOS parameters, this field may be set to zero..TP.I dl_qos_offsetconveys the offset from the beginning of the.B M_PROTOmessage block where the quality of service parameters begin..TP.I dl_growthdefines a growth field for future enhancements to this primitive. Itsvalue must be set to zero..SH STATEThe primitive is valid in state.BR DL_INCON_PENDING ..SH "NEW STATE"The resulting state is.BR DL_CONN_RES_PENDING ..SH RESPONSEIf the connect response is successful,.BR DL_OK_ACK (7)is sent to the DLS user. If no outstanding connect indications remain, theresulting state for the current stream is.BR DL_IDLE ;otherwise it remains.BR DL_INCON_PENDING .For the responding stream (designated by the parameter.IR dl_resp_token ),the resulting state is.BR DL_DATAXFER .If the current stream and responding stream are the same, the resulting stateof that stream is.BR DL_DATAXFER .These streams may only be the same when the response corresponds to the onlyoutstanding connect indication. If the request fails,.BR DL_ERROR_ACK (7)is returned on the stream where the.B DL_CONNECT_RESprimitive was received, and the resulting state of that stream and theresponding stream is unchanged..SH ERRORS.TP.B DL_ACCESSThe DLS user did not have proper permission to use the respondingstream..TP.B DL_BADCORRThe correlation number specified in this primitive did not correspond toapending connect indication..TP.B DL_BADTOKENThe token for the responding stream was not associated with a currently openstream..TP.B DL_BADQOSPARAMThe quality of service parameters contained invalid values..TP.B DL_BADQOSTYPEThe quality of service structure type was not supported by the DLS provider..TP.B DL_OUTSTATEThe primitive was issued from an invalid state, or the respondingstream was not in a valid state for establishing aconnection..TP.B DL_PENDINGCurrent stream and responding stream is the same and there is more than oneoutstanding connect indication..TP.B DL_SYSERRA system error has occurred and the Linux system error is indicated inthe.BR DL_ERROR_ACK (7)..SH VERSIONS.PPThis manpage was written for.B LiS\c..[LiS.].brThe Data Link Provider Interface first appeared in SVR 4..[svr4.].brThis interface conforms to DLPI Revision 2..XX.[dlpi.].[magic.].[advprog.].[$LIST$.].T2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -