The following code is very similar to the example in the OpenAMQ docs:
if (amq_client_session_wait (implChannel, 5000)) { if (implChannel->alive) { logDebug << "Timeout expired" ; } else { logDebug << "Channel died" ; } } else { logDebug << "Message(s) arrived" ; }
My problem is that I never get the message "Timeout expired". The other two work.
The docs say that -1 will be returned when the timeout expired. This does not happen here. amq_client_session_wait always returns 0 when the timeout expires or when messages arrived.
