OSI/MHS P7 Application Programmatic Interface (P7 API) Manual
C Language Example Program
OSI/MHS P7 Application Programmatic Interface (P7 API) Manual—424825-001
E-14
 (size_t)bufLen);
 RecvOffset = 0;
 informClient(dataType, (zmhs_ddl_uapi_request_def *)
 RecvBufferPtr);
 }
 else
 {
 /* Copy the data received to a static buffer */
 memcpy(&RecvBufferPtr[RecvOffset], tmpBuffer,
 (size_t)bufLen);
 informClient(dataType, (zmhs_ddl_uapi_request_def *)
 RecvBufferPtr);
 RecvOffset = RecvOffset + bufLen;
 }
 break;
 default:
 reportError("Invalid Data Type");
 }
 return;
} /* end resultCompletion */
/***************************************************************************/
/* Function name: isSendFile */
/* */
/* Arguments: fileNum */
/* */
/* Description: This function determines whether the input file number */
/* is in the list of currently open sendfiles. */
/* */
/***************************************************************************/
boolean
isSendFile( int fileNum)
{
 int i;
 for ( i = 0; i < MAX_CONNECTIONS && SendFileNum[i] != fileNum ; ++i)
 ;
 return(i < MAX_CONNECTIONS);
}
/***************************************************************************/
/* Function name: isResultFile */
/* */
/* Arguments: fileNum */
/* */
/* Description: This function determines whether the input file number */
/* is in the list of currently open resultfiles. */
/* */
/***************************************************************************/
boolean
isResultFile( int fileNum)
{
 int i;
 for ( i = 0; i < MAX_CONNECTIONS && ResultFileNum[i] != fileNum ; ++i)
 ;
 return(i < MAX_CONNECTIONS);
}
/***************************************************************************/
/* Function name: mapSendFileNum */
/* */
/* Arguments: sendFile */
/* resultFile */
/* */
/* Description: This function gets the corresponding result file */
/* number given a send file number. */
/* */










