From 99c896bf60506c66f339d2ce51d4dca2725968af Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 17 Nov 2009 17:34:55 +0000 Subject: QPID-664: Allow application to set session name and retrieve session using that name; close all sessions when connection is closed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881394 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/messaging/ConnectionImpl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/messaging/ConnectionImpl.h') diff --git a/cpp/src/qpid/messaging/ConnectionImpl.h b/cpp/src/qpid/messaging/ConnectionImpl.h index aa9e5b5fbe..ce60f6f9fc 100644 --- a/cpp/src/qpid/messaging/ConnectionImpl.h +++ b/cpp/src/qpid/messaging/ConnectionImpl.h @@ -37,7 +37,8 @@ class ConnectionImpl : public virtual qpid::RefCounted public: virtual ~ConnectionImpl() {} virtual void close() = 0; - virtual Session newSession() = 0; + virtual Session newSession(const std::string& name) = 0; + virtual Session getSession(const std::string& name) const = 0; private: }; }} // namespace qpid::messaging -- cgit v1.2.1