Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40B707BD4 for ; Tue, 6 Sep 2011 21:47:12 +0000 (UTC) Received: (qmail 53701 invoked by uid 500); 6 Sep 2011 21:47:12 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 53671 invoked by uid 500); 6 Sep 2011 21:47:12 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 53656 invoked by uid 99); 6 Sep 2011 21:47:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 21:47:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 21:47:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A3F3823888E7 for ; Tue, 6 Sep 2011 21:46:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1165883 - in /qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp: Multicaster.cpp Multicaster.h Date: Tue, 06 Sep 2011 21:46:50 -0000 To: commits@qpid.apache.org From: aconway@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110906214650.A3F3823888E7@eris.apache.org> Author: aconway Date: Tue Sep 6 21:46:50 2011 New Revision: 1165883 URL: http://svn.apache.org/viewvc?rev=1165883&view=rev Log: QPID-2920: add conveniece function to multicast AMQBodys directly. Modified: qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.cpp qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.h Modified: qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.cpp URL: http://svn.apache.org/viewvc/qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.cpp?rev=1165883&r1=1165882&r2=1165883&view=diff ============================================================================== --- qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.cpp (original) +++ qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.cpp Tue Sep 6 21:46:50 2011 @@ -22,6 +22,9 @@ #include "Multicaster.h" #include "qpid/cluster/Cpg.h" #include "qpid/log/Statement.h" +#include "qpid/framing/AMQBody.h" +#include "qpid/framing/AMQDataBlock.h" +#include "qpid/framing/AMQFrame.h" namespace qpid { namespace cluster { @@ -55,6 +58,11 @@ void Multicaster::mcast(const framing::A queue.push(bufRef); } +void Multicaster::mcast(const framing::AMQBody& body) { + framing::AMQFrame f(body); + mcast(f); +} + Multicaster::PollableEventQueue::Batch::const_iterator Multicaster::sendMcast(const PollableEventQueue::Batch& buffers) { try { Modified: qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.h URL: http://svn.apache.org/viewvc/qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.h?rev=1165883&r1=1165882&r2=1165883&view=diff ============================================================================== --- qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.h (original) +++ qpid/branches/qpid-2920-1/qpid/cpp/src/qpid/cluster/exp/Multicaster.h Tue Sep 6 21:46:50 2011 @@ -23,12 +23,16 @@ */ #include "BufferFactory.h" -#include "qpid/framing/AMQDataBlock.h" #include "qpid/sys/PollableQueue.h" #include // For struct iovec namespace qpid { +namespace framing { +class AMQDataBlock; +class AMQBody; +} + namespace sys { class Poller; } @@ -50,6 +54,7 @@ class Multicaster /** Multicast an event */ void mcast(const framing::AMQDataBlock&); + void mcast(const framing::AMQBody&); private: typedef sys::PollableQueue PollableEventQueue; --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscribe@qpid.apache.org