From 7cdb9a9ab688988e596d9fce116a0998decd0972 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 2 Dec 2008 20:41:49 +0000 Subject: Cluster: handle CPG flow-control conditions. PollableQueue: allow dispatch functions to refuse dispatch. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@722614 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Event.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/cluster/Event.cpp') diff --git a/cpp/src/qpid/cluster/Event.cpp b/cpp/src/qpid/cluster/Event.cpp index 3f2b5443d2..87cc7e7bd3 100644 --- a/cpp/src/qpid/cluster/Event.cpp +++ b/cpp/src/qpid/cluster/Event.cpp @@ -56,14 +56,14 @@ Event Event::control(const framing::AMQBody& body, const ConnectionId& cid, uint return e; } -void Event::mcast (const Cpg::Name& name, Cpg& cpg) const { +bool Event::mcast (Cpg& cpg) const { char header[OVERHEAD]; Buffer b(header, OVERHEAD); b.putOctet(type); b.putLongLong(reinterpret_cast(connectionId.getPointer())); b.putLong(id); iovec iov[] = { { header, OVERHEAD }, { const_cast(getData()), getSize() } }; - cpg.mcast(name, iov, sizeof(iov)/sizeof(*iov)); + return cpg.mcast(iov, sizeof(iov)/sizeof(*iov)); } Event::operator Buffer() const { -- cgit v1.2.1