User guide

168 DC 900-1338I
Protocol Software Toolkit Programmer Guide
ICP_HDR
count = size of protocol header (16 bytes)
command = DLI_ICP_CMD_DETACH
status = high bits indicate byte ordering
PROT_HDR
session = session ID
The ICP receives a message consisting of an ICP header with DLI_ICP_CMD_DETACH
in the command field and a protocol header with the session number in the session field.
The ICP responds to this command by making that sessions ID available for future ses-
sions. The ICP also turns off devices and clears the link control tables link active flag for
that sessions link if this was not already done as a result of a prior
unbind command.
The ICP always puts a zero, indicating success, in the
status field of the ICP header and
the
modifier field of the protocol header and sends the two headers back to the client as
an acknowledgment.
The response to the detach is read with a call to
dlRead. If the detach was successful, the
optional argument structure in the response is as shown in
DLI_OPT_ARGS.usFWPacketType n/a
DLI_OPT_ARGS.usFWCommand n/a
DLI_OPT_ARGS.usFWStatus n/a
DLI_OPT_ARGS.usICPClientID n/a
DLI_OPT_ARGS.usICPServerID n/a
DLI_OPT_ARGS.usICPCommand DLI_ICP_CMD_DETACH
DLI_OPT_ARGS.iICPStatus DLI_ICP_ERR_NO_ERR
DLI_OPT_ARGS.usICPParms [0] n/a
DLI_OPT_ARGS.usICPParms [1] n/a
DLI_OPT_ARGS.usICPParms [2] n/a
DLI_OPT_ARGS.usProtCommand DLI_ICP_CMD_DETACH
DLI_OPT_ARGS.iProtModifier n/a
DLI_OPT_ARGS.usProtLinkID link the session relates to
DLI_OPT_ARGS.usProtCircuitID n/a
DLI_OPT_ARGS.usProtSessionID Protocol Session ID
DLI_OPT_ARGS.usProtSequence n/a
DLI_OPT_ARGS.usProtXParms [0] n/a
DLI_OPT_ARGS.usProtXParms [1] n/a
Figure 97: Detach Response Format