User guide
170 DC 900-1338I
Protocol Software Toolkit Programmer Guide
ICP_HDR
count = size of protocol header (16 bytes)
command = DLI_ICP_CMD_BIND
status = high bits indicate byte ordering
PROT_HDR
session = session ID
The constant value DLI_ICP_CMD_BIND is in the command field of the ICP header and
a session number is in the
session field of the protocol header. The ICP starts that link’s
receiver, sets the link control table link active flag, and returns an acknowledgment to
the client. If the link was already active, 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 bind is a read with a call to
dlRead. If the bind was successful, the
optional argument structure in the response is as shown in Figure 9–9
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_BIND
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_BIND
DLI_OPT_ARGS.iProtModifier n/a
DLI_OPT_ARGS.usProtLinkID Link started
DLI_OPT_ARGS.usProtCircuitID n/a
DLI_OPT_ARGS.usProtSessionID Protocol Session ID
DLI_OPT_ARGS.usProtSequence n/a
DLI_OPT_ARGS.usProtXParms [0] 0 or DLI_PROT_SEND_BIND (See
Section 9.2.5.1)
DLI_OPT_ARGS.usProtXParms [1] n/a
Figure 9–9: Bind Response Format