2.3.6 ATMI Conversational Client to Host CPI-C, Client Grants/gets Control
Figure 2-26 DMCONFIG File Entry

- ATMI client invokes
toupsrvservice. - The
toupsrvservice issuestpconnectforSIMPCPIC, which is advertised in the DM_REMOTE_SERVICES section of the DMCONFIG file. The TPRECVONLY indicates the server gains control and the first conversation verb thetoupsrvcan issue istprecv. - The remote service with
tpnameTPNCPICinvokesTOUPCPICprogram. - The server accepts the conversation with the
cmaccprequest. The conversation id returned on the request inconvidis used for all other requests on this conversation. - The
cmrcvrequests receives the indicator that control has been granted to the server. - The
cmsendrequest returns itsobuffercontents into the first clienttprecvodatabuffer. The data may not immediately be sent. - The
cmsendrequest returns itsobuffercontents into the second clienttprecv odatabuffer. The data may not immediately be sent. - The
cmptrrequest flushes the data to the client, and grants control to the client. - The
cmrcvrequest receives thetpsendidatabuffer contents for processing. TheTPRECVONLYis passed to thetprecv, relinquishing control of the conversation. - The
cmdealindicates a successful completion of the conversation to thetprecv; no data is passed.
Parent topic: CPI-C Programming Examples