summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Event.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-12-02 20:41:49 +0000
committerAlan Conway <aconway@apache.org>2008-12-02 20:41:49 +0000
commit7cdb9a9ab688988e596d9fce116a0998decd0972 (patch)
treeaef9d6d0bc837b2eb0116e863c8bc89ed8f45021 /cpp/src/qpid/cluster/Event.cpp
parent0fa4afae5e690b1cf147ebbe60641b448fcb5c31 (diff)
downloadqpid-python-7cdb9a9ab688988e596d9fce116a0998decd0972.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/cluster/Event.cpp')
-rw-r--r--cpp/src/qpid/cluster/Event.cpp4
1 files changed, 2 insertions, 2 deletions
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<uint64_t>(connectionId.getPointer()));
b.putLong(id);
iovec iov[] = { { header, OVERHEAD }, { const_cast<char*>(getData()), getSize() } };
- cpg.mcast(name, iov, sizeof(iov)/sizeof(*iov));
+ return cpg.mcast(iov, sizeof(iov)/sizeof(*iov));
}
Event::operator Buffer() const {