Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA5DE17B90 for ; Fri, 26 Sep 2014 16:51:37 +0000 (UTC) Received: (qmail 85351 invoked by uid 500); 26 Sep 2014 16:51:37 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 85313 invoked by uid 500); 26 Sep 2014 16:51:37 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 85302 invoked by uid 99); 26 Sep 2014 16:51:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 16:51:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fraser.adams@blueyonder.co.uk designates 80.0.253.75 as permitted sender) Received: from [80.0.253.75] (HELO know-smtprelay-omc-11.server.virginmedia.net) (80.0.253.75) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 16:51:09 +0000 Received: from [192.168.0.6] ([82.46.91.53]) by know-smtprelay-11-imp with bizsmtp id vsr71o00p194Ho201sr8Ui; Fri, 26 Sep 2014 17:51:08 +0100 X-Originating-IP: [82.46.91.53] X-Spam: 0 X-Authority: v=2.1 cv=Cq4xcxID c=1 sm=1 tr=0 a=GEK9TSmhdsTMf0kiCCnhgg==:117 a=GEK9TSmhdsTMf0kiCCnhgg==:17 a=thNyya010k0A:10 a=3NElcqgl2aoA:10 a=8nJEP1OIZ-IA:10 a=a5Gf7U6LAAAA:8 a=Pg8DvtAAsj9FkKhvnQAA:9 a=2ENURasne6pqWz1H:21 a=MWKHrYgp4tKz3AMD:21 a=wPNLvfGTeEIA:10 Message-ID: <5425997B.9070208@blueyonder.co.uk> Date: Fri, 26 Sep 2014 17:51:07 +0100 From: Fraser Adams User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: "users@qpid.apache.org" Subject: pn_subscription_address is empty more than is useful...... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org pn_subscription_address returns the source address of a subscription as a string when a subscription is successfully made. Well rather, it should. If I were to subscribe to a node on a broker it seems to work fine, that is to say if I have an address of say: localhost/test where test is a queue called test, then it works fine. Even if I do localhost/# A call to pn_subscription_address will contain the whole address including the dynamic node name once the broker has created the queue. In my case I'm using non-blocking code and pn_subscription_address will get called several times in my notifier, initially returning NULL but eventually returning the information I want. So far so good, but if I have an address of say: amqp://~0.0.0.0 or even say amqp://~0.0.0.0/test I never get a non-NULL address. It's actually quite useful to be able to identify that Messenger has successfully created a subscription, especially for asynchronous code. I've used it in code connecting to a broker to actually start doing something useful on a dynamic queue but for peer-peer code I can't do the same. Perhaps with amqp://~0.0.0.0 I can assume that they have been immediately created? Is that a safe assumption? Cheers, Frase --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org