[rabbitmq-discuss] help required: bind function

Aamir Khan syst3m.w0rm at gmail.com
Thu Feb 2 04:53:56 GMT 2012

Hi Saima,

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.

You can checkout : http://www.rabbitmq.com/getstarted.html for writing
simple applications using existing clients for rabbitMQ, if you plan to do

You may also find https://github.com/rabbitmq/rabbitmq-c useful . And, I
guess there is no C++ client library for rabbitMQ at the moment. Correct me
if i am wrong.

On Wed, Feb 1, 2012 at 3:53 AM, Saima Asif <abdullahsaima at yahoo.com> wrote:

> Hi Jerry,
> 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
> "message" which has a routing key.
> 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.
> Thanks
> Saima
>   ------------------------------
> *From:* Jerry Kuch <jerryk at vmware.com>
> *To:* Saima Asif <abdullahsaima at yahoo.com>
> *Cc:* rabbitmq-discuss at lists.rabbitmq.com
> *Sent:* Tuesday, 31 January 2012, 22:12
> *Subject:* Re: [rabbitmq-discuss] help required: bind function
> Hi, Saima.
> To address some of your questions.
> A producer publishes *to* an exchange.  It's a decision a producer makes
> when publishing, much as you might decide which mailbox you plant to drop
> you post card in while you're on vacation.
> A queue is *bound* to an exchange.  Depending on the type of the exchange,
> certain rules, and the properties of the message, determine whether or not
> a given message follows that binding into a particular destination queue.
> Think of the action is being like that of the postal worker, who pulls your
> postcard from the mailbox, looks at it, and determines where to take it.
> How a routing key is interpreted depends on the exchange type in this
> context.
> I'm not sure what you mean by having implemented classes for exchanges,
> and queues.
> Are you writing an AMQP client that you intend to use with someone else's
> broker?
> Or are you wrapping these entities up in some way that is convenient for
> the needs
> of your C++ application?  Or are you implementing an actual AMQP broker,
> perhaps
> for teaching purposes?
> Best regards,
> Jerry
> ----- Original Message -----
> From: "Saima Asif" <abdullahsaima at yahoo.com>
> To: rabbitmq-discuss at lists.rabbitmq.com
> Sent: Tuesday, January 31, 2012 2:06:25 PM
> Subject: [rabbitmq-discuss] help required: bind function
> Hi All,
> 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.
> I am using visual C++, can send the code if required but its not in its
> refined form.
> Thanks
> Any help would be highly appreciated. Sorry if I am not following your
> format of writing emails. I am new to this.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Aamir Khan | 3rd Year  | Computer Science & Engineering | IIT Roorkee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120202/6c0316d3/attachment.htm>

More information about the rabbitmq-discuss mailing list