<div dir="ltr">I am trying to run amqp_consumer from the examples library, with port number 5672. <div><br></div><div>The programs terminates when trying to open the TCP socket</div><div><div> </div><div><font color="#ff0000">status = amqp_socket_open(socket, hostname, port);</font></div>
<div><font color="#ff0000"> if (status) {</font></div><div><font color="#ff0000"> die("opening TCP socket");</font></div><div><font color="#ff0000"> }</font></div></div><div><br></div><div>Any idea why this is happening? Should I change some configuration settings about the port (I'm using Ubuntu 12 right now)?</div>
<div><br></div><div>Thank you,</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 1:02 AM, Alan Antonuk <span dir="ltr"><<a href="mailto:alan.antonuk@gmail.com" target="_blank">alan.antonuk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Inlined:</div><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">
On Tue, Jan 7, 2014 at 3:51 PM, Roberto Pagliari <span dir="ltr"><<a href="mailto:roberto@canary.is" target="_blank">roberto@canary.is</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am looking at the example of the RabbitC library <div><br></div><div><a href="https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_producer.c" target="_blank">https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_producer.c</a><br>
</div><div><br></div><div>1. which port can normally be used for it?</div></div></blockquote></div><div> You should use the port that you've configured your RabbitMQ broker to listen on. By default RabbitMQ listens on 5672, and 5671 for SSL connections, if you have those configured.</div>
<div class="im">
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>2. what are rate_limit and message_count?</div></div></blockquote></div><div> rate_limit is the number of messages per second the example will try to send. The message_count is the number of messages the program will send before terminating.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>-Alan</div></font></span></div></div></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>