<div dir="ltr"><div class="gmail_extra">Not quite.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The result from amqp_basic_publish() means that the library was able to successfully write the message to the network. �This does not mean that the message was published successfully.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>By default the broker will not send anything back to the client when it publishes a message unless an error occurs (such as publishing to an exchange that doesn&#39;t exist).</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>You need to use the code referenced earlier on the list in order to do publisher confirms with rabbitmq-c.</div><div class="gmail_extra"><br><div class="gmail_quote">
On Mon, Jul 8, 2013 at 11:30 PM, 3k4b251 <span dir="ltr">&lt;<a href="mailto:314992959@qq.com" target="_blank">314992959@qq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I �usually � do �like �this:<br>
<br>
<br>
�res �= �amqp_basic_publish(....);<br>
<br>
if(res &lt;0)<br>
{<br>
� � �// � Publish � faild<br>
}<br>
<br>
//Publish �Ok.<br>
<br>
<br>
It � menns � message �already � pass to �queue �or �exchange ?<br>
<br>
if �not, �I �try �to �use �confirm �like you say .<br>
I&#39;d like �to �use � amqp_wait_simple_frame() �after �amqp_basic_publish();<br>
But �it �seems �like �that �I �just �receive �the message body �header �and<br>
others. � not � the �ack.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-confirmation-tp27910p27916.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-confirmation-tp27910p27916.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the RabbitMQ mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div><div class="gmail_extra"><br></div></div>