summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/ConnectionHandler.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-03-31 17:20:08 +0000
committerGordon Sim <gsim@apache.org>2008-03-31 17:20:08 +0000
commit9649f8ccca2a9f62a946bd58e7d3e8cb60031232 (patch)
treea8a4f30c6c01f455e2429002a5ccc3c719e773b7 /cpp/src/qpid/broker/ConnectionHandler.cpp
parent36cfeb13b8ad4b532f7f9c2b48ac2353e6217bcd (diff)
downloadqpid-python-9649f8ccca2a9f62a946bd58e7d3e8cb60031232.tar.gz
Updated xml fragment to reflect correct types for connection.start.mechanisms, connection.start.locales and connection.open.capabilities
Updated connection handler in line with above changes Added Str16Value to FieldValues Allow Array instances of different types to be created git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@643067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/ConnectionHandler.cpp')
-rw-r--r--cpp/src/qpid/broker/ConnectionHandler.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/ConnectionHandler.cpp b/cpp/src/qpid/broker/ConnectionHandler.cpp
index 53a403c955..f28c2bb7f7 100644
--- a/cpp/src/qpid/broker/ConnectionHandler.cpp
+++ b/cpp/src/qpid/broker/ConnectionHandler.cpp
@@ -66,8 +66,12 @@ void ConnectionHandler::handle(framing::AMQFrame& frame)
ConnectionHandler::ConnectionHandler(Connection& connection) : handler(new Handler(connection)) {
FieldTable properties;
- string mechanisms(PLAIN);
- string locales(en_US);
+ Array mechanisms(0x95);
+ boost::shared_ptr<FieldValue> m(new Str16Value(PLAIN));
+ mechanisms.add(m);
+ Array locales(0x95);
+ boost::shared_ptr<FieldValue> l(new Str16Value(en_US));
+ locales.add(l);
handler->serverMode = true;
handler->client.start(properties, mechanisms, locales);
}
@@ -105,7 +109,7 @@ void ConnectionHandler::Handler::tuneOk(uint16_t /*channelmax*/,
}
void ConnectionHandler::Handler::open(const string& /*virtualHost*/,
- const string& /*capabilities*/, bool /*insist*/)
+ const framing::Array& /*capabilities*/, bool /*insist*/)
{
string knownhosts;
client.openOk(knownhosts);