summaryrefslogtreecommitdiff
path: root/cpp/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Andrew Stitcher <astitcher@redhat.com>Alan Conway2007-01-3012-63/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | r723@fuschia: andrew | 2007-01-12 00:35:16 +0000 Branch for my work on Qpid.0-9 r724@fuschia: andrew | 2007-01-12 00:59:28 +0000 Added in empty implementation of handler class for protocol Message class r768@fuschia: andrew | 2007-01-17 01:25:16 +0000 * Added Test for new MessageHandlerImpl (but no actual tests yet) * Filled in lots of the blanks in the MessageHandlerImpl with code stolen from the BasicHandlerImpl r800@fuschia: andrew | 2007-01-17 17:34:13 +0000 Updated to latest upstream changes r840@fuschia: andrew | 2007-01-19 00:31:59 +0000 Fixed merge errors r841@fuschia: andrew | 2007-01-19 00:47:29 +0000 Another merge problem fixed r878@fuschia: andrew | 2007-01-24 11:27:48 +0000 Started work on the Message class handler implementation r976@fuschia: andrew | 2007-01-30 17:05:05 +0000 Working again after broker Message refactor r980@fuschia: andrew | 2007-01-30 18:39:18 +0000 Fix for extra parameter to transfer git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501534 13f79535-47bb-0310-9956-ffa450edef68
* * client/* framing/*: fixed client-side request ID processing.Alan Conway2007-01-309-93/+106
| | | | | | | | | | | | | | * cpp/tests/InProcessBroker.h: For tests: connect to an in-process broker directly, bypass the network. Keeps log of client/broker conversation for verification in test code. * cpp/tests/FramingTest.cpp (testRequestResponseRoundtrip): Client/broker round-trip test for request/reponse IDs and response mark. * APRAcceptor.cpp (APRAcceptor): fixed valgrind uninitialized error. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501502 13f79535-47bb-0310-9956-ffa450edef68
* * Added ClientAdapter - client side ChannelAdapter. Updated client side.Alan Conway2007-01-2931-851/+1073
| | | | | | | | | | | | | | | | * Moved ChannelAdapter initialization from ctor to init(), updated broker side. * Improved various exception messages with boost::format messages. * Removed unnecssary virtual inheritance. * Widespread: fixed incorrect non-const ProtocolVersion& parameters. * Client API: pass channels by reference, not pointer. * codegen: - MethodBodyClass.h.templ: Added CLASS_ID, METHOD_ID and isA() template. - Various: fixed non-const ProtocolVersion& parameters. * cpp/bootstrap: Allow config arguments with -build. * cpp/gen/Makefile.am: Merged codegen fixes from trunk. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501087 13f79535-47bb-0310-9956-ffa450edef68
* Don't close channel on connection (resulting in BrokerAdapter being deleted) ↵Gordon Sim2007-01-241-1/+1
| | | | | | until close request has been successfully sent. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@499332 13f79535-47bb-0310-9956-ffa450edef68
* * Fixed request-response correlation on the broker.Alan Conway2007-01-224-5/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@498706 13f79535-47bb-0310-9956-ffa450edef68
* Updated size calculation of request frame.Gordon Sim2007-01-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@498662 13f79535-47bb-0310-9956-ffa450edef68
* * AMQRequestBody.cpp: encode/decode bug - added missing reserved 4 byte word.Alan Conway2007-01-224-0/+92
| | | | | | | | * BrokerSingleton: allow broker to run in-process. * RequestResponseTest: skeleton test for request-response round-trip. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@498646 13f79535-47bb-0310-9956-ffa450edef68
* Last big refactoring for 0-9 framing. Still need additional tests &Alan Conway2007-01-1936-198/+410
| | | | | | | | | | | | | | | | debugging but the overall structure is all in place. * configure.ac: Added -Wno_virtual_overload warning * ChannelTest.cpp, MessageBuilderTest.cpp: Fixed virtual overload warnings. * ChannelAdapter.cpp: Common base for client/broker adapters. Creates invocation context, handles request/resposne IDs. * CppGenerator.java: - Proxies send methods using MethodContext. * Various .h files: removed unnecessary #includes, added to requred .cpp files. * ConnectionContext: renamed from SessionContext. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497963 13f79535-47bb-0310-9956-ffa450edef68
* * tests/FramingTest.cpp - added test for validation of content data typeGordon Sim2007-01-192-40/+24
| | | | | | | | | * lib/broker/BrokerAdapter.cpp - initial unbind implementation * lib/common/framing/FramingContent.cpp - minor code cleanup git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497755 13f79535-47bb-0310-9956-ffa450edef68
* Initial implementation of AMQP content data type.Gordon Sim2007-01-184-13/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497542 13f79535-47bb-0310-9956-ffa450edef68
* * MethodContext: added invocation context for methods. Can carry RequestIdAlan Conway2007-01-186-106/+161
| | | | | | | | | as well as ChannelId. * gentools: AMQP_Clinet|ServerOperations and *Body::invoke(): pass MethodContex instead of channel ID. * All *HandlerImpl classe: use MethodContext instead of channel ID. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497511 13f79535-47bb-0310-9956-ffa450edef68
* In case any channel is waiting for a response on termination of the ↵Gordon Sim2007-01-181-0/+1
| | | | | | connection, notify the response handler. (Fix to QPID-303). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497473 13f79535-47bb-0310-9956-ffa450edef68
* From: Andrew Stitcher <astitcher@redhat.com>Alan Conway2007-01-184-306/+429
| | | | | | | | | | | | | | | | | | | | | | | r723@fuschia: andrew | 2007-01-12 00:35:16 +0000 Branch for my work on Qpid.0-9 r724@fuschia: andrew | 2007-01-12 00:59:28 +0000 Added in empty implementation of handler class for protocol Message class r768@fuschia: andrew | 2007-01-17 01:25:16 +0000 * Added Test for new MessageHandlerImpl (but no actual tests yet) * Filled in lots of the blanks in the MessageHandlerImpl with code stolen from the BasicHandlerImpl r800@fuschia: andrew | 2007-01-17 17:34:13 +0000 Updated to latest upstream changes Alan Conway <aconway@redhat.com> * Took the changes from Andrew's patch and separated the MessageHandlerImpl into its own .cpp/.h file. Other handlers should be separated also. * BrokerAdapter inner classes ignore channel arg and use channel member instead. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497336 13f79535-47bb-0310-9956-ffa450edef68
* There are a ton of FIXMES and request/response IDs are not yet working fullyAlan Conway2007-01-1811-680/+676
| | | | | | | | | | | | | | | | | | | | | but all tests are passing. * broker::Broker: Removed requester/responder from broker. * framing::BodyHandler: added Requester/Responder to BodyHandler, becomes the base class for channel adapters in broker and client. * broker::BrokerAdapter: Inherit BodyHandler, wraps a broker::Channel. Hide private *HandlerImpl detail classes in BodyHandler.cpp. * broker::Connection: Requester/Responder/Adapter now per-channel. Connection channel map replaced with adapter map of BrokerAdapters. handle* functions moved to BrokerAdapter. All methods now handled by a BrokerAdapter for the relevant channel. ChannelHandlerImpl is repsonsible for checking that - No method on a non-0 channel is processed before open() - Channel 0 methods only happen on channel 0 and similar for non-zero methods Checks are not yet complete (see FIXMES) * client::ResponseHandler: fix for client hang if broker crashs. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497319 13f79535-47bb-0310-9956-ffa450edef68
* Separated adapter code from Connection class: Extracted allAlan Conway2007-01-178-827/+914
| | | | | | | | | | | HandlerImpl classes to BrokerAdapter. The Connection is now part of the version-invariant core, all version-dependent code is in BrokerAdapter. The extraction exposes some ugly dependencies between adapter, Connection and parts of the Broker. More refactoring to follow to improve encapsulation. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496926 13f79535-47bb-0310-9956-ffa450edef68
* * Renamed Session* classes to Connection* to align with AMQP specAlan Conway2007-01-1621-173/+165
| | | | | | | | | | - broker::SessionHandlerImpl -> broker::Connection - broker::SessionHandlerImplFactory -> broker::ConnectionFactory - sys::SessionHandler -> ConnectionInputHandler - sys::SessionHandlerFactory -> ConnectionInputHandlerFactory git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496848 13f79535-47bb-0310-9956-ffa450edef68
* * Client & broker using Requester/Responder to manage request/response IDs.Alan Conway2007-01-1515-185/+319
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496511 13f79535-47bb-0310-9956-ffa450edef68
* * Refactor: Moved major broker components (exchanges, queues etc.) fromAlan Conway2007-01-158-109/+134
| | | | | | | class SessionHandlerImplFactory to more logical class Broker. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496425 13f79535-47bb-0310-9956-ffa450edef68
* * Combined README.txt and READE-dist into README. Fixes cwiki link,Alan Conway2007-01-141-0/+1
| | | | | | | | and provides more useful chunk of info. * Fixed rpm target to create build directories. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496114 13f79535-47bb-0310-9956-ffa450edef68
* * Added Requester/Responder classes to manage request-ids, response-ids,Alan Conway2007-01-148-24/+231
| | | | | | | and response-mark. Response batches not yet supported. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496110 13f79535-47bb-0310-9956-ffa450edef68
* Andrew Stitcher <astitcher@redhat.com>Alan Conway2007-01-122-29/+254
| | | | | | | * Add empty implementation of handler class for protocol Message class. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@495681 13f79535-47bb-0310-9956-ffa450edef68
* Use amqp 0-9 request/response framing in broker and client.Alan Conway2007-01-1212-137/+165
| | | | | | | | | | Updated: framing, client, broker, generated code. The new request/response data (request-id etc.) is not yet being used, we are simply running the old Basic protocol over request/response frames. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@495679 13f79535-47bb-0310-9956-ffa450edef68
* * Build order - src before tests.Alan Conway2007-01-119-32/+35
| | | | | | | * docs/api/developer.doxygen: Generate for all classes, private members etc. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@495254 13f79535-47bb-0310-9956-ffa450edef68
* Encoding and decoding of AMQP 0-9 request and response frames.Alan Conway2007-01-1013-58/+333
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@495018 13f79535-47bb-0310-9956-ffa450edef68
* version back merge from trunk rev 494553.Carl C. Trieloff2007-01-0913-70/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494559 13f79535-47bb-0310-9956-ffa450edef68
* merged in code form Andrew, to clean up version map construction.Carl C. Trieloff2007-01-091-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494518 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Andrew, I will merge the solution that I am working on shortly, butCarl C. Trieloff2007-01-091-2/+2
| | | | | | | | this patch should enable the branch to work till then git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494427 13f79535-47bb-0310-9956-ffa450edef68
* Merged changes from trunk to fix C++ client version 0-0 bug. Changes to ↵Kim van der Riet2007-01-052-47/+1
| | | | | | cpp/lib/common/Makefile.am, so bootstrap, configure required to remake Makefiels. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@493020 13f79535-47bb-0310-9956-ffa450edef68
* 0-9 branch now compiles but is not yet functional.Alan Conway2007-01-054-43/+108
| | | | | | | | | | | | | | | Areas needing attention are marked FIXME. It includes both 0-8 Basic etc. classes 0-9 Message claasses, 0-8 classes cannot be removed till 0-9 Message is ready to replace them. Summary of fixes: - added 0-9 methods to SessionHandlerImpl.h, no implementation yet. - added missing framing::Content methods - unimplemented methods do { assert(0); // FIXME git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492840 13f79535-47bb-0310-9956-ffa450edef68
* Compile fixes, still not complete: #def class in FramingContent.hAlan Conway2007-01-041-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492787 13f79535-47bb-0310-9956-ffa450edef68
* Fixed compile errors, not all fixed yet:Alan Conway2007-01-043-36/+30
| | | | | | | | - Fix error in code generator for decoding timestamps. - Add dummy op<< for framing::Content git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492774 13f79535-47bb-0310-9956-ffa450edef68
* Fixed some compile errors:Alan Conway2007-01-041-8/+11
| | | | | | | | - Fix error in code generator for decoding timestamps. - Add dummy op<< for framing::Content git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492713 13f79535-47bb-0310-9956-ffa450edef68
* Comment correction.Alan Conway2007-01-031-5/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@492318 13f79535-47bb-0310-9956-ffa450edef68
* - rpm: make rpm now builds RPMs under rpm/ directory.Alan Conway2006-12-233-131/+193
| | | | | | | | | - src/qpidd.cpp: added --daemon option to run as daemon. - etc/qpidd: fixed bugs in init.rc script. - qpidc.spec: fixed rpmlint warnings, added apache URL git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489905 13f79535-47bb-0310-9956-ffa450edef68
* missed files from last commit.Carl C. Trieloff2006-12-212-5/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489422 13f79535-47bb-0310-9956-ffa450edef68
* Support for multi version, merge part 1. - can still refactor out dup use ofCarl C. Trieloff2006-12-209-29/+43
| | | | | | | | version object in client and server opperations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489212 13f79535-47bb-0310-9956-ffa450edef68
* Adding files for EventChannel implementation.Alan Conway2006-12-203-0/+480
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489110 13f79535-47bb-0310-9956-ffa450edef68
* [For Andrew Stitcher] inlined qpid::sys::check() in APRBase.h; This is ↵Kim van der Riet2006-12-192-10/+12
| | | | | | called a lot - for every call to an APR call, inlining this seems to give about 8% speed in my tests (even though originally check() only seemed to use 1-2% of the time). I think this must be a 2nd order instruction caching effect. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488808 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/gen/Makefile.am: fixed generated code dependencies.Alan Conway2006-12-196-28/+35
| | | | | | | | * *Channel,SessionHandlerImpl,FramingTest: added FieldTable argument to consume() to conform to updated XML. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488745 13f79535-47bb-0310-9956-ffa450edef68
* Added additional files AMQP_HighestVersion.h/.cpp to identify the highest ↵Kim van der Riet2006-12-182-0/+47
| | | | | | available version for client use. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488304 13f79535-47bb-0310-9956-ffa450edef68
* Broker side dynamic version hook up.Carl C. Trieloff2006-12-142-35/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@487359 13f79535-47bb-0310-9956-ffa450edef68
* Added some doxygen comments for the client API.Gordon Sim2006-12-1310-16/+408
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486747 13f79535-47bb-0310-9956-ffa450edef68
* Added prepared() method to MessageStore interface.Gordon Sim2006-12-136-8/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486555 13f79535-47bb-0310-9956-ffa450edef68
* Sundry fixes to spec and build system for RPM packaging.Alan Conway2006-12-132-1/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486428 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-11 Alan Conway <aconway@redhat.com>Alan Conway2006-12-123-56/+63
| | | | | | | | | | | * SPECS/qpid-cpp.spec: Draft RPM spec file for C++. Based on initial draft provided by David Lutterkort <dlutter@redhat.com> * cpp Makefiles: Renamed libraries with qpid prefix: libqpidclient etc. * cpp/man/: moved to docs/man/ * docs/api/usr.doxygen: more restricted, user-oriented doc settings. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486207 13f79535-47bb-0310-9956-ffa450edef68
* Renamed Content.h (and Content.cpp for consistency) in framing to avoid ↵Gordon Sim2006-12-124-4/+4
| | | | | | clashing with existing Content.h file. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486119 13f79535-47bb-0310-9956-ffa450edef68
* Added new Content class and other methods in Buffer to support the new ↵Kim van der Riet2006-12-115-0/+103
| | | | | | transport in AMQP 0-9. This will allow the code produced by the code generator for 0-9 to compile. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485780 13f79535-47bb-0310-9956-ffa450edef68
* Allow xid to be associated with publication and acknowledgements.Gordon Sim2006-12-117-11/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485594 13f79535-47bb-0310-9956-ffa450edef68
* Thanks Alan the static_cast does prevent the warning on rhel4/x86_64Steven Shaw2006-12-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483943 13f79535-47bb-0310-9956-ffa450edef68
* Some more unit tests.Gordon Sim2006-12-082-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483916 13f79535-47bb-0310-9956-ffa450edef68