User guide

9: Client Applications Commands and Responses
DC 900-1338I 161
9.2 Client and ICP Communication
The following sections discuss the DLI functions and DLI_OPT_ARGS data structure as
used by client applications in communicating with ICP software. In addition, this com-
munication is discussed from the ICP perspective with details regarding the content of
the
ICP_HDR and PROT_HDR data structures.
The ICP supports the command/response codes shown in Tab le 9 2, which are
encoded into the
DLI_OPT_ARGS structure (shown previously in Figure 91 on
page 158). The remainder of this chapter describes how these commands are used to
access and provide data to a wide area network.
Table 92: Command/Response Code Summary
Function
usICPCommand
Field Code
usProtCommand
Field Code Reference Section
Attach
DLI_ICP_CMD_ATT
ACH
DLI_ICP_CMD_ATTACH
Section 9.2.3 on page 164
Bind
DLI_ICP_CMD_BIND DLI_ICP_CMD_BIND
Section 9.2.5 on page 169
Configure link
DLI_ICP_CMD_WRIT
E
DLI_ICP_CMD_REA
D
DLI_PROT_CFG_LINK
Section 9.2.7.1 on page 175
Request statistics
DLI_ICP_CMD_WRIT
E
DLI_ICP_CMD_REA
D
DLI_PROT_GET_STATIST
ICS_REPORT
Section 9.2.7.2 on page 179
Send data
DLI_ICP_CMD_WRIT
E
DLI_PROT_SEND_NORM
_DATA
Section 9.2.7.3 on page 182
Receive acknowledge
DLI_ICP_CMD_REA
D
DLI_PROT_RESP_LOCAL
_ACK
Section 9.2.7.3 on page 182
Receive data
DLI_ICP_CMD_REA
D
DLI_PROT_SEND_NORM
_DATA
Section 9.2.8.1 on page 185
Unbind
DLI_ICP_CMD_UNBI
ND
DLI_ICP_CMD_UNBIND
Section 9.2.6 on page 172
Detach
DLI_ICP_CMD_DET
ACH
DLI_ICP_CMD_DETACH
Section 9.2.4 on page 167