From 879413783bf64537e3a1c7d036e2fb34700cc4e5 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Tue, 9 Jan 2007 19:44:50 +0000 Subject: Most of remaining version changes for C++. Still need to deal with AMQFrame defualt constructor and do some clean up here and there.. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@494540 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/client/Connector.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp/lib/client/Connector.cpp') diff --git a/cpp/lib/client/Connector.cpp b/cpp/lib/client/Connector.cpp index 2bd77c1bcd..b34e66fd94 100644 --- a/cpp/lib/client/Connector.cpp +++ b/cpp/lib/client/Connector.cpp @@ -28,10 +28,11 @@ using namespace qpid::client; using namespace qpid::framing; using qpid::QpidError; -Connector::Connector(bool _debug, u_int32_t buffer_size) : - debug(_debug), +Connector::Connector(const qpid::framing::ProtocolVersion& pVersion, bool _debug, u_int32_t buffer_size) : + debug(_debug), receive_buffer_size(buffer_size), send_buffer_size(buffer_size), + version(pVersion), closed(true), lastIn(0), lastOut(0), timeout(0), @@ -162,7 +163,7 @@ void Connector::run(){ inbuf.move(received); inbuf.flip();//position = 0, limit = total data read - AMQFrame frame; + AMQFrame frame(version); while(frame.decode(inbuf)){ if(debug) std::cout << "RECV: " << frame << std::endl; input->received(&frame); -- cgit v1.2.1