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

- ATMI client invokes
toupsrv
service. - The
toupsrv
service issuestpconnect
forSIMPCPIC
, which is advertised in the DM_REMOTE_SERVICES section of the DMCONFIG file. TheTPRECVONLY
indicates the server gains control and the first conversation verb thetoupsrv
can issue istprecv
. Data is sent on thetpconnect
in theidata
buffer. - 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
cmsst
request prepares the next send request by setting the send type toCM_SEND_AND_FLUSH.
- The
cmsend
command returns theobuffer
contents into the clienttprecv
odata
buffer. The data is immediately flushed on the send request. - The
cmdeal
request ends the conversation.
Parent topic: CPI-C Programming Examples