User guide
9: Client Applications — Commands and Responses
DC 900-1338I 173
ICP_HDR
count = size of protocol header (16 bytes)
command = DLI_ICP_CMD_UNBIND
status = high bits indicate byte ordering
PROT_HDR
session = session ID
The constant DLI_ICP_CMD_UNBIND is in the command field of the ICP header and a
session number is in the
session field of the protocol header. The ICP stops devices for
that link, clears the link control table link active flag, and returns an acknowledgment
to the client. If the link was inactive, the acknowledgment contains an error code in the
ICP header’s
status field and the protocol header’s modifier field. Otherwise they contain
zero, indicating success.
The response to the unbind is a read with a call to
dlRead. If the unbind was successful,
the optional argument structure in the response is shown in Figure 9–11.
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_UNBIND
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_UNBIND
DLI_OPT_ARGS.iProtModifier n/a
DLI_OPT_ARGS.usProtLinkID Link stopped
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 9–11: Unbind Response Format