2.3.4 ATMI Conversational Client to Host CPI-C, Server Gets Control
Figure 2-24 DMCONFIG File Entry

- ATMI client invokes
toupsrvservice. - The
toupsrvservice issuestpconnectforSIMPCPIC, which is advertised in the DM_REMOTE_SERVICES section of the DMCONFIG file. TheTPRECVONLYindicates the server gains control and the first conversation verb thetoupsrvcan issue istprecv. Data is sent on thetpconnectin theidatabuffer. - The remote service with
tpname TPNCPICinvokesTOUPCPICprogram. - The server accepts the conversation with the
cmaccpcall. The conversation ID returned on the request inconvidis used for all other requests on this conversation. - The
cmrcvrequest receives theidatabuffer contents for processing. - The
TOUPCPICprogram processes data. - The
cmsstrequest prepares the next send request by setting the send type toCM_SEND_AND_FLUSH. - The
cmsendcommand returns theobuffercontents into the clienttprecvodatabuffer. The data is immediately flushed on the send request. - The
cmdealrequest ends the conversation.
Parent topic: CPI-C Programming Examples