OpenTP1 Version 7 Programming Guide

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

3.6.7 Resending messages

Sent messages can be resent using the function dc_mcf_resend() [CBLDCMCF('RESEND ')]. A resent message is treated as a new message separate from the message that was sent in the past. Messages are resent in the following cases:

Organization of this subsection
(1) Conditions for resending messages
(2) Specification for messages to be resent
(3) Relationship with network communication definition

(1) Conditions for resending messages

The following messages can be resent:

If the message to be resent is not found in the message queue (disk queue), the function dc_mcf_resend() returns with an error.

(2) Specification for messages to be resent

Messages to be resent are identified using the following information which was specified on the sent message:

(3) Relationship with network communication definition

Resending of a message requires the use of a work area with the size equal to the maximum segment length specified for the -e option to the UAP common definition (mcfmuap) included in the MCF manager definition. If the segment of the message being resent is larger than this work area, the function dc_mcf_resend() returns with an error. Therefore, the value specified for the -e option to the UAP common definition must be at least the maximum length of the message to be resent.

More than one message with the same sequence number may be present in the message queue file, depending on the sequence number specification given in the -l option to the UAP common definition included in the MCF manager definition. In this case, which message is resent is unpredictable.