summaryrefslogtreecommitdiff
path: root/cpp/lib/common/framing/Requester.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2007-02-09 00:52:46 +0000
committerAndrew Stitcher <astitcher@apache.org>2007-02-09 00:52:46 +0000
commitf197f0c88e1f5ed37a14617b1006f6579c4319e7 (patch)
tree63481b59b90c60e69550da9b95d268f36e1bcc84 /cpp/lib/common/framing/Requester.h
parent5611851b2094372ba5cb77c93ba475e95ce76437 (diff)
downloadqpid-python-f197f0c88e1f5ed37a14617b1006f6579c4319e7.tar.gz
r1102@fuschia: andrew | 2007-02-09 00:52:04 +0000
Got ack working for the non batched case Small tidy up in broker Channel git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@505108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/common/framing/Requester.h')
-rw-r--r--cpp/lib/common/framing/Requester.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/lib/common/framing/Requester.h b/cpp/lib/common/framing/Requester.h
index 562ba681c1..dae5b1eaee 100644
--- a/cpp/lib/common/framing/Requester.h
+++ b/cpp/lib/common/framing/Requester.h
@@ -46,6 +46,9 @@ class Requester
/** Called after processing a response. */
void processed(const AMQResponseBody::Data&);
+ /** Get the next id to be used. */
+ RequestId getNextId() { return lastId + 1; }
+
private:
std::set<RequestId> requests; /** Sent but not responded to */
RequestId lastId;