OSI/MHS P7 Application Programmatic Interface (P7 API) Manual

Procedure Calls
OSI/MHS P7 Application Programmatic Interface (P7 API) Manual424825-001
3-9
LOS_DT_FINISH_SEND_
Example
This example shows how to retrieve the result or error from the buffer used by the result
file.
long int status;/* Check status of LOS_DT_FINISH_RESULT_ */
int FileNum; /* File number completion occurred on
*/
char *tmpBuffer;
long int bufLen;
long int maxBufLen = ZMHS_VAL_LOUAPI_MAX_DATA_SIZE;
int dataType;
int moreData;
status = LOS_DT_FINISH_RESULT_(FileNum,
(long *) &tmpBuffer,
&bufLen,
maxBufLen,
&dataType,
&moreData);
LOS_DT_FINISH_SEND_
Use the LOS_DT_FINISH_SEND_ data-transfer procedure to check for the success or
failure of a previously issued LOS_DT_SEND_ procedure. This information is returned
to the client application. You should call this procedure when the file number returned
from AWAITIOX is that of the send file.
status returned value
long int
indicates the outcome of the call. A value of 0 indicates a successful call. For
additional values, see Appendix B, “Return Codes.
sendFileNum input
int
specifies the file number on which AWAITIOX has reported completion. This file
number is allocated by the call to LOS_OPEN_ .
bufferPtr input
extptr int *
specifies the address of the buffer returned from the call to AWAITIOX.
status = LOS_DT_FINISH_SEND_ ( sendFileNum,
bufferPtr );