DLPI Primitives
Connection-mode Service Primitives
DL_BADCORR
The correlation number specified in this primitive did not correspond to a pending connect indication.
DL_OUTSTATE
The primitive was issued from an invalid state.
DL_SYSERR
A system error has occurred and the UNIX system error is indicated in the DL_ERROR_ACK.
DL_DISCONNECT_IND
Informs the DLS user that the data link connection on this stream has been disconnected, or that a pending connection (either DL_CONNECT_REQ or DL_CONNECT_IND) has been aborted. This primitive indicates the origin and the cause of the disconnect.
Format
The message consists of one M_PROTO message block containing the structure shown below.
typedef struct { |
|
ulong | dl_primitive; |
ulong | dl_originator; |
ulong | dl_reason; |
ulong | dl_correlation; |
} dl_disconnect_ind_t;
Parameters
dl_primitive
DL_DISCONNECT_IND
dl_originator
whether the disconnect was DLS user or DLS provider originated (DL_USER or DL_PROVIDER, respectively).
dl_reason
the reason for the disconnection:
DL_DISC_PERMANENT_CONDITION: connection release due to permanent connection.
Chapter 2 | 121 |