diff options
| author | Gordon Sim <gsim@apache.org> | 2008-03-31 17:20:08 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-03-31 17:20:08 +0000 |
| commit | 9649f8ccca2a9f62a946bd58e7d3e8cb60031232 (patch) | |
| tree | a8a4f30c6c01f455e2429002a5ccc3c719e773b7 /cpp/src/qpid/broker | |
| parent | 36cfeb13b8ad4b532f7f9c2b48ac2353e6217bcd (diff) | |
| download | qpid-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')
| -rw-r--r-- | cpp/src/qpid/broker/ConnectionHandler.cpp | 10 | ||||
| -rw-r--r-- | cpp/src/qpid/broker/ConnectionHandler.h | 2 |
2 files changed, 8 insertions, 4 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); diff --git a/cpp/src/qpid/broker/ConnectionHandler.h b/cpp/src/qpid/broker/ConnectionHandler.h index 8e659f0913..56de1c7517 100644 --- a/cpp/src/qpid/broker/ConnectionHandler.h +++ b/cpp/src/qpid/broker/ConnectionHandler.h @@ -56,7 +56,7 @@ class ConnectionHandler : public framing::FrameHandler void tuneOk(uint16_t channelMax, uint32_t frameMax, uint16_t heartbeat); void heartbeat() {} void open(const std::string& virtualHost, - const std::string& capabilities, bool insist); + const framing::Array& capabilities, bool insist); void close(uint16_t replyCode, const std::string& replyText, uint16_t classId, uint16_t methodId); void closeOk(); |
