Hello Alan!
I am a Senior student at the Software Engineering department and currently an intern programmer in C++. I do have some questions, can you please answer them for me? :D
1. When the connection is forcibly closed via the RabbitMQ web interface, we can specify the reason for that in a special window. I tried to figure out where the reason is saved in code, and it's for some reason here : ((char*)conn->pool_table[0]->pool.alloc_block+14). Q: Is there any easier way to get the message?†
Yes, depending on what call errors out, you'll want to look at the last `
amqp_rpc_reply_t` specifically looking at the method member. You'll need to look at the id field, and validate that its a AMQP_CONNECTION_CLOSE_METHOD, then decoded can be cast to an amqp_connection_close_t, some functions return this directly, for others you'll want to use the
amqp_get_rpc_reply function to get this information.
2. And I did my best in looking for the "?" mark, but did not find that. Q: Where Can I specify the name for the Connection? For this moment, it's only a question "?" mark (in the RabbitMQ web interface).
This can be specified by adding a `connection_name` item with your desired name (as a string) to the properties table when calling `amqp_login_with_properties`.
Thank you!
Sincerely,
Dzhumabaev Nursultan