rabbitmq-c
rabbitmq-c copied to clipboard
How to set the expiration
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?
m_prop is a struct, amqp_basic_properties_t_ in amqp_framing.h