From bffd507d565f4030407dc3d998f0e7ead2b39aa7 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 12 Feb 2009 19:01:51 +0000 Subject: Cluster security support: - Set correct user ID on update connections. - Allow configuration of user, pass and mechanism used for update connections. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743839 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Connection.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cpp/src/qpid/client/Connection.h') diff --git a/cpp/src/qpid/client/Connection.h b/cpp/src/qpid/client/Connection.h index ed984ccb42..03631ef56f 100644 --- a/cpp/src/qpid/client/Connection.h +++ b/cpp/src/qpid/client/Connection.h @@ -106,6 +106,18 @@ class Connection const std::string& pwd = "guest", const std::string& virtualhost = "/", uint16_t maxFrameSize=65535); + /** + * Opens a connection to a broker using a URL. + * If the URL contains multiple addresses, try each in turn + * till connection is successful. + * + * @url address of the broker to connect to. + * + * @param settings used for any settings not provided by the URL. + * Settings provided by the url (e.g. host, port) are ignored. + */ + void open(const Url& url, const ConnectionSettings& settings); + /** * Opens a connection to a broker. * -- cgit v1.2.1