amqp_basic_qos_ok_t* ret = amqp_basic_qos(this->connection, this->channel, 0, 100, 0);
reply = amqp_get_rpc_reply(this->connection);
if (reply.reply_type != AMQP_RESPONSE_NORMAL) {
std::cout << "Set basic qos with code " << reply.reply_type << " and exception " << amqp_error_string2(reply.reply_type) << std::endl;
}
amqp_basic_consume(this->connection, this->channel, amqp_cstring_bytes(queue.c_str()), amqp_empty_bytes, 0, 1, 0, amqp_empty_table);
reply = amqp_get_rpc_reply(this->connection); // Executing basic consumption binding
if (reply.reply_type != AMQP_RESPONSE_NORMAL) {
std::cout << "Executed basic consume with code " << reply.reply_type << " and exception " << amqp_error_string2(reply.reply_type) << std::endl;
}