2.3.13 Transactional ATMI Conversational Client to Host CPI-C, Server Gets Control
Figure 2-33 DMCONFIG File Entry

- ATMI client invokes
toupsrvservice. - The
toupsrvservice issuestpbeginto start the transaction. - The
toupsrvservice issues atpconnectservice request forSIMPCPIC, which is advertised in the DM_REMOTE_SERVICES section of the DMCONFIG file. Data is sent in theidatabuffer on thetpconnect. - The remote service with
tpnameTPNCPICinvokesTOUPCPICprogram. - The server accepts the conversation with the
cmaccpcall. The conversation ID returned on the request inconvidis used for all other requests during this conversation. - The
cmrcvrequest receives theidatabuffer contents sent on thetpconnectfor processing. - The
TOUPCPICprogram processes the data. - The
cmsendreturns theobuffercontents into the client’stprecvodatabuffer. The buffer contents may not be sent immediately. - The
cmsptrprepares the prepare-to-receive request withCM_PREP_TO_RECEIVE_CONFIRM. Thecmptrrequest withCONFIRMindicates that the conversation is finished and is communicated to thetprecvasTPEV_SVCSUCC. - The
toupsrvissues thetpcommitto successfully complete the transaction and commit all updated resources. Thecmrcvrequest receives the commit request and responds explicitly to the request with the SAA Resource/Recovery commit callsrrcmit. The conversation is ended after the successful commit exchange.
Parent topic: CPI-C Programming Examples