rabbitmq-c icon indicating copy to clipboard operation
rabbitmq-c copied to clipboard

How to set the expiration

Open JinwenJay opened this issue 5 years ago • 1 comments

string strExpiration = "6000"; m_prop._flags |= AMQP_BASIC_EXPIRATION_FLAG; m_prop.expiration = amqp_cstring_bytes(strExpiration.c_str());

We can't publish message using above code. The key is what should be set about m_prop.expiration?

JinwenJay avatar Jan 07 '20 07:01 JinwenJay

m_prop is a struct, amqp_basic_properties_t_ in amqp_framing.h

JinwenJay avatar Jan 07 '20 07:01 JinwenJay