lrt_tpchkunsol

Communication Functions

Returns the number of unsolicited messages.

int lrt_tpchkunsol( void );

The lrt_tpchkunsol function checks to see if the Tuxedo client received any unsolicited messages.

Return Values

If the function ends with an error, it returns -1 and sets the error code in tperrno.

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

The following example sends an output message if unsolicited messages were sent to the Tuxedo client.

Copy code
int nMessages;nMessages = lrt_tpchkunsol();
if (nMessages > 0)
       lr_output_message("%d unsolicited messages", nMessages);