summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/Connection.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-02-20 15:26:05 +0000
committerAlan Conway <aconway@apache.org>2008-02-20 15:26:05 +0000
commitb9c71c852e2e7bbc1635ff62fabf2469e2175399 (patch)
treeee3ce9dcd6dc45e76270f6f4d696eb09bfc63895 /cpp/src/qpid/client/Connection.cpp
parent615beb132f725ebc4a88d58dc5f3b8af8419f932 (diff)
downloadqpid-python-b9c71c852e2e7bbc1635ff62fabf2469e2175399.tar.gz
Added non-optional enum { SYNC, ASYNC } parameter to newSession.
Updated API doc in client/SessionBase.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@629503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
-rw-r--r--cpp/src/qpid/client/Connection.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp
index b2508f4a24..26113c1254 100644
--- a/cpp/src/qpid/client/Connection.cpp
+++ b/cpp/src/qpid/client/Connection.cpp
@@ -70,12 +70,15 @@ void Connection::open(
}
void Connection::openChannel(Channel& channel) {
- channel.open(newSession());
+ channel.open(newSession(ASYNC));
}
-Session_0_10 Connection::newSession(uint32_t detachedLifetime) {
+Session_0_10 Connection::newSession(SynchronousMode sync,
+ uint32_t detachedLifetime)
+{
shared_ptr<SessionCore> core(
new SessionCore(impl, ++channelIdCounter, max_frame_size));
+ core->setSync(sync);
impl->addSession(core);
core->open(detachedLifetime);
return Session_0_10(core);