Accept a connect request from a remote user. Causes a UA frame to be sent over the network (to ack the SABME or SABM that was received earlier). This message consists of one M_PROTO message block containing the following structure:
typedef struct {
t_uscalar_t dl_primitive; /* DL_CONNECT_RES */
t_uscalar_t dl_correlation; /* provider's correlation token */
t_uscalar_t dl_resp_token; /* token of responding stream */
t_uscalar_t dl_qos_length; /* length of qos structure */
t_uscalar_t dl_qos_offset; /* offset from start of block */
t_uscalar_t dl_growth; /* set to zero */
} dl_connect_res_t;
The members of the dl_connect_res_t structure are:
Table 11-17 Members of the dl_connect_res_t structure|
Member |
Description |
|---|---|
|
dl_primitive |
Should be set to the name of this primitive. |
|
dl_correlation |
Contains the correlation number passed upstream in the DL_CONNECT_IND message. |
|
dl_resp_token |
Contains the token of the stream that will accept the connection, if the accepting stream is not the listen stream (applies to LLC2 only). |
|
dl_qos_length |
Will be ignored. |
|
dl_qos_offset |
Will be ignored. |
|
Error |
Description |
|---|---|
|
DL_OUTSTATE |
Primitive issued from an invalid state, or the accepting stream is not in state DL_IDLE (attached and bound) or is not attached to the same PPA. |
|
DL_BADCORR |
The dl_correlation parameter does not correspond to the ID of a pending connection. |
|
DL_BADTOKEN |
The dl_resp_token parameter does not correspond to a currently open stream. |
|
DL_ACCESS |
Accepting stream is not bound to the same SAP as the listen stream. |
|
DL_PENDING |
Attempt to accept a connection on the listen stream when there are other outstanding connect indications on the listen stream, or an attempt to accept a connection on the "connection management" stream. |
|
DL_SYSERR |
Could not allocate STREAMS resources. |