OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

3.6.4 Sending messages

After all processing of the segment sending UAP terminates (MHP termination or normal termination of SPP transaction), OpenTP1 sends, as messages, all the segments sent from the UAP at a time. Sending messages in this manner is called asynchronous message send processing. Use the function dc_mcf_send() [CBLDCMCF('SEND ')] for send-only messages. Use the function dc_mcf_reply() [CBLDCMCF('REPLY ')] for response messages.

During asynchronous message send processing, if rollback processing is executed due to the following after the function has sent segments, all the segment send functions used from the UAP are invalidated:

Before segments sent from the UAP are output, the user exit routine enables you to do processing such as editing of serial numbers or output messages.

The figure below shows message send processing.

Figure 3-9 Message send processing (asynchronous message sending)

[Figure]