title: using default exchange in rabbitmq-c
body: <p>I am trying to connect to rabbitmq-c in centos 5.6 and test its function in c client following the steps of the website: <a href="http://www.rabbitmq.com/tutorials/tutorial-one-java.html" rel="noreferrer">http://www.rabbitmq.com/tutorials/tutorial-one-java.html</a>.
  However, it fails when I use the default exchange. </p>
  
  <p>For example, I want to send a message, "Hello world", to a queue named "myqueue" via the default exchange whose name is "(AMQP default)".</p>
  
  <p>In java, here is the code:</p>
  
  <pre><code>channel.basicPublish("", QUEUE_NAME, null, message.getBytes());
  </code></pre>
  
  <p>But in c, when I run rmq_new_task.c (almost the same as amqp_sendstring.c) as the examples on <a href="https://github.com/liuhaobupt/rabbitmq_work_queues_demo-with-rabbit-c-client-lib" rel="noreferrer">https://github.com/liuhaobupt/rabbitmq_work_queues_demo-with-rabbit-c-client-lib</a>.</p>
  
  <pre><code>queuename="myqueue";
  ......
  die_on_error(amqp_basic_publish(conn, amqp_cstring_bytes(exchange),
      amqp_cstring_bytes(routingkey), &amp;props, amqp_cstring_bytes("Hello world")),
      "Publishing");
  </code></pre>
  
  <p>In the java client, we just set the parameter "exchange" to "" to tell the server that we'd send the message to a specified queue named the same as routingkey via the default exchange. </p>
  
  <p>So what value should I give the second parameter "exchange" in c client (using the default exchange)?  I tried to set it to "" or "amq.direct". It didnot show any error while running and seemed working well. </p>
  
  <p>However, when I checked in the rabbitmq-management(http://localhost:55672/#/queues), the queue named "myqueue" did not exist!</p>
  
  <p>Would someone please point me to the right direction? I'd really appreciate!</p>