2.3.5 ATMI Conversational Client To Host CPI-C, Client Retains Control
Figure 2-25 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 TPSENDONLY indicates the client retains control and continues to send data. No data is sent with thetpconnect
. - 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 thetpsend
idata
buffer contents for processing. The conversation is relinquished with theTPRECVONLY
flag. - The
TOUPCPIC
program processes data. - The
cmsend
returns a response in thetprecv
idata
buffer, along with notification from thecmdeal
command that the conversation is over. Thecmdeal
flushes the data buffer and thetprecv reevent
parameter is set toTPEV_SUCCESS
.
Parent topic: CPI-C Programming Examples