tibrvTransport_SendReply()

Function

Declaration

tibrv_status tibrvTransport_SendReply(
    tibrvTransport      transport,
    tibrvMsg            replyMessage,
    tibrvMsg            requestMessage);

Purpose

Send a reply message.

Remarks

This function extracts the reply subject of an inbound request message, and sends an 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 overwrites any existing send subject of the reply message with the reply subject of the request message.

Parameter

Description

transport

Send the reply on this 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.

Warning 

Give special attention to the order of the arguments to this function. 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).

See Also

tibrvMsg_Create()

tibrvTransport