2.3.2 ATMI Client Asynchronous Request/Response to Host CPI-C
Figure 2-22 DMCONFIG File Entry

- ATMI client invokes
toupsrv
service. - The
toupsrv
service issuestpacall
forSIMPCPIC
, which is advertised in the DM_REMOTE_SERVICES section of the DMCONFIG file. - The remote service with
tpname
TPNCPIC
invokesTOUPCPIC
program. - The server accepts the conversation with the
cmaccp
call. The conversation id returned on the request inconvid
is used for all other requests on this conversation. - The
cmrcv
request receives theidata
buffer contents for processing. - The
TOUPCPIC
program processes data. - The
cmsend
command returns theobuffer
contents into the clienttpgetreply odata
buffer. The data may not be immediately sent to thetpgetreply odata
buffer on this request. - The
cmdeal
flushes the data to the client, and indicates the conversation is finished.
Parent topic: CPI-C Programming Examples