alanxz / rabbitmq-c

RabbitMQ C client
MIT License
1.76k stars 669 forks source link

How to set the expiration #594

Open JinwenJay opened 4 years ago

JinwenJay commented 4 years ago

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 commented 4 years ago

m_prop is a struct, amqp_basic_propertiest in amqp_framing.h