2.3.8 Host CPI-C to ATMI Server Request/Response
Figure 2-28 DMCONFIG File Entry

- The CPI-C application program MIRRCPIC is invoked using environment start-up specifications.
- The
MIRRCPICclient requestscminit to establish conversation attributes and receive a conversation id that will be used on all other requests on this conversation. The remote server and service are named in the CPI-C side information entryMIRRSIDE. - The
cmallcrequest initiates the advertised service mapped toMIRRORSERVin the DM_LOCAL_SERVICES section of the DMCONFIG file. - The
cmsstrequest prepares the next send request by setting the send type toCM_SEND_AND_PREP_TO_RECEIVE. - The
cmsendrequest immediately sends the contents ofobufferto the ATMI service in thetpsvcinfo->databuffer and relinquishes control to themirrorservservice. - The
cmrcvrequest receives the contents of theodatareturned on the ATMItpreturnservice, and notification that the conversation has ended with the return code value ofCM_DEALLOCATED_NORMAL.
Parent topic: CPI-C Programming Examples