diff options
author | Gordon Sim <gsim@apache.org> | 2008-04-29 20:15:18 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-04-29 20:15:18 +0000 |
commit | acc0dee435e1fa22e3b1e7cdfecf6913bf88988e (patch) | |
tree | 729f7a03543acf23380e68897f8788a3e6b45e2e /cpp/src/qpid/client/ConnectionHandler.h | |
parent | a19ce3b1863f80c1232ec2690cd920325a39d71a (diff) | |
download | qpid-python-acc0dee435e1fa22e3b1e7cdfecf6913bf88988e.tar.gz |
QPID-974: allow the size of the queue of outgoing frames to be restricted
QPID-544: tidy up configuration (ensuring desired settings are used correctly,
allowing tcp socket options to be set etc)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@652083 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ConnectionHandler.h')
-rw-r--r-- | cpp/src/qpid/client/ConnectionHandler.h | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/cpp/src/qpid/client/ConnectionHandler.h b/cpp/src/qpid/client/ConnectionHandler.h index d7ab97ce31..1cf0c905ed 100644 --- a/cpp/src/qpid/client/ConnectionHandler.h +++ b/cpp/src/qpid/client/ConnectionHandler.h @@ -22,9 +22,10 @@ #define _ConnectionHandler_ #include "ChainableFrameHandler.h" -#include "Connector.h" +#include "ConnectionSettings.h" #include "StateManager.h" #include "qpid/framing/AMQMethodBody.h" +#include "qpid/framing/AMQP_HighestVersion.h" #include "qpid/framing/AMQP_ClientOperations.h" #include "qpid/framing/AMQP_ServerProxy.h" #include "qpid/framing/Array.h" @@ -35,27 +36,11 @@ namespace qpid { namespace client { -struct ConnectionProperties -{ - std::string uid; - std::string pwd; - std::string vhost; - framing::FieldTable properties; - std::string mechanism; - std::string locale; - framing::Array capabilities; - uint16_t heartbeat; - uint16_t maxChannels; - uint64_t maxFrameSize; - bool insist; - framing::ProtocolVersion version; -}; - -class ConnectionHandler : private StateManager, - public ConnectionProperties, - public ChainableFrameHandler, - public framing::InputHandler, - private framing::AMQP_ClientOperations::ConnectionHandler +class ConnectionHandler : private StateManager, + public ConnectionSettings, + public ChainableFrameHandler, + public framing::InputHandler, + private framing::AMQP_ClientOperations::ConnectionHandler { typedef framing::AMQP_ClientOperations::ConnectionHandler ConnectionOperations; enum STATES {NOT_STARTED, NEGOTIATING, OPENING, OPEN, CLOSING, CLOSED, FAILED}; @@ -73,6 +58,10 @@ class ConnectionHandler : private StateManager, framing::AMQP_ServerProxy::Connection proxy; uint16_t errorCode; std::string errorText; + bool insist; + framing::ProtocolVersion version; + framing::Array capabilities; + framing::FieldTable properties; void checkState(STATES s, const std::string& msg); @@ -96,7 +85,7 @@ public: typedef boost::function<void()> CloseListener; typedef boost::function<void(uint16_t, const std::string&)> ErrorListener; - ConnectionHandler(); + ConnectionHandler(const ConnectionSettings&, framing::ProtocolVersion&); void received(framing::AMQFrame& f) { incoming(f); } |