You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by Paul O'Fallon <pa...@ofallonfamily.com> on 2013/02/10 05:03:42 UTC

Peer-to-peer Messenger examples?

Hello!  An earlier e-mail to the qpid-user mailing list (
http://bit.ly/WWTSYn) indicates that AMQP 1.0 (and the proton Messenger API
in particular) support peer-to-peer communication.  Is there a C API
example of using proton in this peer-to-peer fashion?  So far I've only
used it to send and receive from brokers, but I'd be interested to learn
more about this peer-to-peer support as well...

Thank you!

- Paul

Re: Peer-to-peer Messenger examples?

Posted by Rafael Schloming <rh...@alum.mit.edu>.
Yes, when you subscribe with an address where the host portion starts with
a tilde, the messenger will actually bind to that address rather than
connect to it.

--Rafael

On Mon, Feb 11, 2013 at 2:51 PM, Paul O'Fallon <pa...@ofallonfamily.com>wrote:

> Ah ok thanks!  Is it the tilde in the IP address portion of the URL that
> denotes this?
>
> - Paul
>
> On Mon, Feb 11, 2013 at 8:59 AM, Rafael Schloming <rh...@alum.mit.edu>
> wrote:
>
> > The example provided here[1] should be suitable for both peer to peer and
> > brokered operation, you just need to change the address you supply in
> order
> > to switch between the two. The default addresses supplied in the recv.c
> > should set the receiver up to listen for incoming connections. Just point
> > the sender to it the same way you would point it to a broker.
> >
> > [1]
> >
> >
> https://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/
> >
> > --Rafael
> >
> > On Sat, Feb 9, 2013 at 11:03 PM, Paul O'Fallon <paul@ofallonfamily.com
> > >wrote:
> >
> > > Hello!  An earlier e-mail to the qpid-user mailing list (
> > > http://bit.ly/WWTSYn) indicates that AMQP 1.0 (and the proton
> Messenger
> > > API
> > > in particular) support peer-to-peer communication.  Is there a C API
> > > example of using proton in this peer-to-peer fashion?  So far I've only
> > > used it to send and receive from brokers, but I'd be interested to
> learn
> > > more about this peer-to-peer support as well...
> > >
> > > Thank you!
> > >
> > > - Paul
> > >
> >
>

Re: Peer-to-peer Messenger examples?

Posted by Paul O'Fallon <pa...@ofallonfamily.com>.
Ah ok thanks!  Is it the tilde in the IP address portion of the URL that
denotes this?

- Paul

On Mon, Feb 11, 2013 at 8:59 AM, Rafael Schloming <rh...@alum.mit.edu> wrote:

> The example provided here[1] should be suitable for both peer to peer and
> brokered operation, you just need to change the address you supply in order
> to switch between the two. The default addresses supplied in the recv.c
> should set the receiver up to listen for incoming connections. Just point
> the sender to it the same way you would point it to a broker.
>
> [1]
>
> https://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/
>
> --Rafael
>
> On Sat, Feb 9, 2013 at 11:03 PM, Paul O'Fallon <paul@ofallonfamily.com
> >wrote:
>
> > Hello!  An earlier e-mail to the qpid-user mailing list (
> > http://bit.ly/WWTSYn) indicates that AMQP 1.0 (and the proton Messenger
> > API
> > in particular) support peer-to-peer communication.  Is there a C API
> > example of using proton in this peer-to-peer fashion?  So far I've only
> > used it to send and receive from brokers, but I'd be interested to learn
> > more about this peer-to-peer support as well...
> >
> > Thank you!
> >
> > - Paul
> >
>

Re: Peer-to-peer Messenger examples?

Posted by Rafael Schloming <rh...@alum.mit.edu>.
The example provided here[1] should be suitable for both peer to peer and
brokered operation, you just need to change the address you supply in order
to switch between the two. The default addresses supplied in the recv.c
should set the receiver up to listen for incoming connections. Just point
the sender to it the same way you would point it to a broker.

[1]
https://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/

--Rafael

On Sat, Feb 9, 2013 at 11:03 PM, Paul O'Fallon <pa...@ofallonfamily.com>wrote:

> Hello!  An earlier e-mail to the qpid-user mailing list (
> http://bit.ly/WWTSYn) indicates that AMQP 1.0 (and the proton Messenger
> API
> in particular) support peer-to-peer communication.  Is there a C API
> example of using proton in this peer-to-peer fashion?  So far I've only
> used it to send and receive from brokers, but I'd be interested to learn
> more about this peer-to-peer support as well...
>
> Thank you!
>
> - Paul
>