User`s guide

2: DDCMP DLI Functions
DC 900-1343D 47
2.5.3 Data Transfer using Raw dlWrite
For the DDCMP software to properly handle data transfer, the localAck DLI configu-
ration parameter must be set to “no (see Figure 2–1 on page 30). After sending a data
transfer request, the client application must make a
dlRead request to receive the
acknowledgment response associated with each
dlWrite data transfer request, as
explained below.
2.5.3.1 Send Normal Data
Use the dlWrite function with the pOptArgs.usProtCommand field set to
DLI_PROT_SEND_NORM_DATA to send normal data. The buffer pointed to by the pBuf
parameter contains 16 empty bytes followed by the data to transmitted. The dlWrite
iBufLen parameter equals the size of the data (in bytes) + 16. The maximum iBufLen is
1000 bytes.
The data is not considered successfully transmitted and acknowledged by the remote
computer until the client receives the
dlRead final acknowledgment response (the
pOptArgs.iProtModifier field is set to “Final Acknowledge of Data Transmitted” as
described in Section 2.6.1.2 on page 49).