tibrvcmTransport_SendReply()

Function

Declaration

tibrv_status tibrvcmTransport_SendReply(
    tibrvcmTransport    cmTransport,
    tibrvMsg            replyMessage,
    tibrvMsg            requestMessage);

Purpose

Send a labeled reply message.

Remarks

This convenience call extracts the reply subject of an inbound request message, and sends a labeled outbound reply message to that subject. In addition to the convenience, this call is marginally faster than using separate calls to extract the subject and send the reply.

This function can send a labeled reply to an ordinary message.

This function automatically registers the requesting CM transport, so the reply message is certified.

Warning 

Give special attention to the order of the arguments to this method. Reversing the inbound and outbound messages can cause an infinite loop, in which the program repeatedly resends the inbound message to itself (and all other recipients).

Parameter

Description

cmTransport

Send a message using this certified delivery transport.

replyMessage

Send this outbound reply message.

requestMessage

Send a reply to this inbound request message; extract its reply subject to use as the subject of the outbound reply message.

If this message has a wildcard reply subject, the function produces an error.

See Also

tibrvcmTransport_Send()

tibrvcmTransport_SendRequest()