<span class="Apple-style-span" style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)"><font class="Apple-style-span" face="&#39;trebuchet ms&#39;, sans-serif">Hi Saima,<div><br></div><div>I guess to understand the working of AMQP, you are trying to write client for it in C++ language. Is that your intention ? Writing client will be much tedious task compared to using a existing clients.</div>

<div><br></div><div>You can checkout :�<a href="http://www.rabbitmq.com/getstarted.html" target="_blank" style="color:rgb(17,85,204)">http://www.rabbitmq.com/getstarted.html</a>�for writing simple applications using existing clients for rabbitMQ, if you plan to do so.</div>

<div><br></div><div>You may also find�<a href="https://github.com/rabbitmq/rabbitmq-c" target="_blank" style="color:rgb(17,85,204)">https://github.com/rabbitmq/rabbitmq-c</a>�useful . And,�I guess there is no C++ client library for rabbitMQ at the moment. Correct me if i am wrong.</div>

</font></span><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 3:53 AM, Saima Asif <span dir="ltr">&lt;<a href="mailto:abdullahsaima@yahoo.com">abdullahsaima@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div><span>Hi Jerry,</span></div><div><span><br></span></div><div><span>I am student , and my supervisor and I have chosen to implement and study it at very simpler level. my classes are not refined. There is one class &quot;message&quot; which has a routing key.</span></div>

<div><span>I need your help how can I write Bind() function for this. How can exchanges and queues are already have relation, before sending messages by publisher. My program wants to send messgae to exchange and then exchanges routes to queues, But how can I do this in C++. means I am not understanding logic. you all are experts and having a good conversation while I am at very initial level of understanding. if you can help me in writing my code.</span></div>

<div><span><br></span></div><div><span>Thanks</span></div><div>�</div><font color="#888888"><div>Saima<br></div>  </font><div style="font-size:12pt;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><div class="hm">

 </div><div style="font-size:12pt;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif"><div class="hm"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Jerry Kuch &lt;<a href="mailto:jerryk@vmware.com" target="_blank">jerryk@vmware.com</a>&gt;<br>

 <b><span style="font-weight:bold">To:</span></b> Saima Asif &lt;<a href="mailto:abdullahsaima@yahoo.com" target="_blank">abdullahsaima@yahoo.com</a>&gt; <br><b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a> <br>

 <b><span style="font-weight:bold">Sent:</span></b> Tuesday, 31 January 2012, 22:12<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [rabbitmq-discuss] help required: bind function<br> </font> </div></div><div>

<div></div><div class="h5"> <br>Hi, Saima.<br><br>To address some of your questions.<br><br>A producer publishes *to* an exchange.� It&#39;s a decision a producer makes<br>when publishing, much as you might decide which mailbox you plant to drop<br>

you post
 card in while you&#39;re on vacation.<br><br>A queue is *bound* to an exchange.� Depending on the type of the exchange,<br>certain rules, and the properties of the message, determine whether or not<br>a given message follows that binding into a particular destination queue.<br>

Think of the action is being like that of the postal worker, who pulls your<br>postcard from the mailbox, looks at it, and determines where to take it.<br>How a routing key is interpreted depends on the exchange type in this context.<br>

<br>I&#39;m not sure what you mean by having implemented classes for exchanges, and queues.<br>Are you writing an AMQP client that you intend to use with someone else&#39;s broker?<br>Or are you wrapping these entities up in some way that is convenient for the needs<br>

of your C++ application?� Or are you implementing an actual AMQP broker, perhaps<br>for teaching purposes?<br><br>Best regards,<br>Jerry<br><br>----- Original Message -----<br>From:
 &quot;Saima Asif&quot; &lt;<a href="mailto:abdullahsaima@yahoo.com" target="_blank">abdullahsaima@yahoo.com</a>&gt;<br>To: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>

Sent: Tuesday, January 31, 2012 2:06:25 PM<br>Subject: [rabbitmq-discuss] help required: bind function<br><br><br><br><br>Hi All, <br><br><br>I am going to understand AMQP version 0-9 at simpler level, The binding function definition is problem for me. First issue isHow I can randomly define the messages, if I did that How a message knows to go to which exchange, so that exchange can move to particular queue. I have defined queue and exchange as a class. I have defined routing key as well. I have implemented the queues that store such messages. But I need your help in defining bind() and How to route message to exchanges. <br>

<br>I am using visual C++, can send the code
 if required but its not in its refined form. <br>Thanks <br>Any help would be highly appreciated. Sorry if I am not following your format of writing emails. I am new to this. <br>_______________________________________________<br>

rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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><br> </div></div></div> </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><br clear="all"><div><br></div>-- <br><div><span style="color:rgb(136,136,136);font-family:verdana,sans-serif;background-color:rgb(255,255,255);font-size:x-small"><span style="border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(213,15,37);border-right-color:rgb(213,15,37);border-bottom-color:rgb(213,15,37);border-left-color:rgb(213,15,37);border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;color:rgb(136,136,136);padding-top:2px;margin-top:2px">Aamir Khan |</span><span style="border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(51,105,232);border-right-color:rgb(51,105,232);border-bottom-color:rgb(51,105,232);border-left-color:rgb(51,105,232);border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;color:rgb(136,136,136);padding-top:2px;margin-top:2px">�3rd�Year �|</span><span style="border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(0,153,57);border-right-color:rgb(0,153,57);border-bottom-color:rgb(0,153,57);border-left-color:rgb(0,153,57);border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;color:rgb(136,136,136);padding-top:2px;margin-top:2px">�Computer Science &amp; Engineering�|</span><span style="border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(238,178,17);border-right-color:rgb(238,178,17);border-bottom-color:rgb(238,178,17);border-left-color:rgb(238,178,17);border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:2px;margin-top:2px"><font color="#888888">�</font><font color="#67753a">IIT Roorkee</font></span></span></div>

<div><span style="color:rgb(136,136,136);font-family:verdana,sans-serif;background-color:rgb(255,255,255);font-size:x-small"><span style="border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(238,178,17);border-right-color:rgb(238,178,17);border-bottom-color:rgb(238,178,17);border-left-color:rgb(238,178,17);border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:2px;margin-top:2px"><font color="#67753a"><br>

</font></span></span></div><br>