1.8 tpsend()

Table 1-8 tpsend()

tpsend() Parameters Contents CPIC Notes
cd - The connection descriptor This locally assigned connection descriptor has been mapped to the CONVID returned in the CMINIT and CMALLC on behalf of the tpconnect().
data - User data ASCII/EBCDIC conversion may be required before sending to CICS.
len - Length of User data -
flags TPRECVONLY If true, the conversation changes to receive state. The state of the conversation changes from send to receive. A CMSEND is sent with send_type set to CM_SEND_AND_PREP_TO_RECEIVE.
TPNOBLOCK N/A Local
TPNOTIME N/A Local
TPSIGRSTRT N/A Local
revent TPEV_DISCONIMM If set, the LU6.2 conversation has been terminated abnormally. If the return code from a CMRCV is deallocate_abnormal, the conversation is terminated. A disconnect event is sent to the sending process.
TPEV_SVCERR If set, the LU6.2 conversation has been terminated abnormally. Any return code other than CM_OK or CM_DEALLOCATE_NORMAL is treated as a TPEV_SVCERR.
TPEV_SVCFAIL If set, the LU6.2 conversation has been terminated abnormally. If the return code from CMRCV is CM_TP_NOT_AVAIL_NO_RETRY or CM_TP_RESOURCE_FAILURE_NO_RETRY, revent is set to TPEV_SVCFAIL.