2.3.6 ATMI Conversational Client to Host CPI-C, Client Grants/gets Control
Figure 2-26 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. The TPRECVONLY indicates the server gains control and the first conversation verb thetoupsrv
can issue istprecv
. - The remote service with
tpname
TPNCPIC
invokesTOUPCPIC
program. - The server accepts the conversation with the
cmaccp
request. The conversation id returned on the request inconvid
is used for all other requests on this conversation. - The
cmrcv
requests receives the indicator that control has been granted to the server. - The
cmsend
request returns itsobuffer
contents into the first clienttprecv
odata
buffer. The data may not immediately be sent. - The
cmsend
request returns itsobuffer
contents into the second clienttprecv odata
buffer. The data may not immediately be sent. - The
cmptr
request flushes the data to the client, and grants control to the client. - The
cmrcv
request receives thetpsend
idata
buffer contents for processing. TheTPRECVONLY
is passed to thetprecv
, relinquishing control of the conversation. - The
cmdeal
indicates a successful completion of the conversation to thetprecv
; no data is passed.
Parent topic: CPI-C Programming Examples