summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/common
Commit message (Collapse)AuthorAgeFilesLines
* Fix for the most disruptive items in QPID-243.Andrew Stitcher2007-04-02109-8612/+0
| | | | | | | | | | | | * All #include lines now use '""' rather than '<>' where appropriate. * #include lines within the qpid project use relative includes so that the same path will work in /usr/include when installed as part of the client libraries. * All the source code has now been rearranged to be under src in a directory analogous to the namespace of the classes in it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@524769 13f79535-47bb-0310-9956-ffa450edef68
* Missed changes on previous commit.Alan Conway2007-03-281-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523474 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/run-unit-tests,setup: use valgrind --log-file rather thanAlan Conway2007-03-282-9/+11
| | | | | | | | | | | redirecting stderr. Redirecting also swallows DllPlugInTester output. * cpp/lib/common/sys/Acceptor.h: getPort() to return uint16_t, not int16t. Note AcceptorTest is not inclued in Makefile.am. I fixed it to compile but it hangs, need to determine if it's a test or an Acceptor bug. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523473 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/BrokerChannelTest.cpp: Fix leak.Alan Conway2007-03-272-2/+2
| | | | | | | | | * cpp/lib/broker/Connection.h: signature fix, pass const& instead of *. * cpp/lib/client/IncomingMessage.cpp: Correct error codes. * cpp/lib/broker/Reference.cpp: Fix TODO. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523085 13f79535-47bb-0310-9956-ffa450edef68
* Refactored client::Message to be independent of all Basic class conceptsAlan Conway2007-03-277-91/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and client::IncomingMessage to handle 0-9 style references and appends. * cpp/lib/client/ClientMessage.cpp: Made independent of Basic class. * cpp/lib/client/IncomingMessage.cpp: Refactored to handle references/appends. * cpp/lib/client/BasicMessageChannel.cpp: Refactored to use new IncomingMessage Thread safety fixes: * cpp/lib/client/ResponseHandler.h: Remove stateful functions. * cpp/lib/client/ClientChannel.cpp: use new ResponseHandler interface. Minor cleanup: * cpp/lib/common/framing/BasicHeaderProperties.cpp: use DeliveryMode enum. * cpp/tests/HeaderTest.cpp: use DeliveryMode enum. * cpp/tests/MessageTest.cpp: use DeliveryMode enum. * cpp/lib/common/shared_ptr.h: #include <boost/cast.hpp> for convenience. * cpp/lib/common/sys/ThreadSafeQueue.h: Changed "stop" "shutdown" * cpp/lib/common/sys/ProducerConsumer.h: Changed "stop" "shutdown" * cpp/tests/ClientChannelTest.cpp (TestCase): Removed debug couts. * cpp/tests/setup: valgrind --demangle=yes by default. * cpp/tests/topictest: sleep to hack around startup race. * cpp/lib/broker/BrokerQueue.cpp (configure): Fixed memory leak. Removed/updated FIXME comments in: * cpp/lib/broker/BrokerMessage.cpp: * cpp/lib/broker/BrokerMessageBase.h: * cpp/lib/broker/InMemoryContent.cpp: * cpp/lib/common/framing/MethodContext.h: git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@522956 13f79535-47bb-0310-9956-ffa450edef68
* Cleaned up signatures: safer to return string than const string&.Alan Conway2007-03-211-29/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520993 13f79535-47bb-0310-9956-ffa450edef68
* Refactored client side for dual-mode Channel supporting either 0-9 Message ↵Alan Conway2007-03-213-0/+33
| | | | | | or 0-8 Basic. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520972 13f79535-47bb-0310-9956-ffa450edef68
* Modifications to allow messages produced by the message class to be ↵Gordon Sim2007-03-211-1/+1
| | | | | | | | | | persisted as well as those from the basic class. Fix to broker initialisation (ensure queues use the correct store). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520924 13f79535-47bb-0310-9956-ffa450edef68
* Renamed cpp-0-9 to cppAlan Conway2007-03-21108-0/+8563
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520706 13f79535-47bb-0310-9956-ffa450edef68
* * cpp: svn removed, will rename cpp-0-9Alan Conway2007-03-2188-6980/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520705 13f79535-47bb-0310-9956-ffa450edef68
* Added the non-standard 'binary' type to the field table implementation to ↵Gordon Sim2007-01-182-0/+13
| | | | | | support the java client. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@497439 13f79535-47bb-0310-9956-ffa450edef68
* Close connection when connection.close is sent to client.Gordon Sim2007-01-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@497341 13f79535-47bb-0310-9956-ffa450edef68
* Some basic additional error logging of framing errors. Gordon Sim2007-01-162-4/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@496665 13f79535-47bb-0310-9956-ffa450edef68
* Most of remaining version changes for C++. Still need to deal with AMQFrameCarl C. Trieloff2007-01-092-25/+21
| | | | | | | | defualt constructor and do some clean up here and there.. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@494540 13f79535-47bb-0310-9956-ffa450edef68
* Fixed C++ client sending protocol version 0-0 over the wire. Minor fixes and ↵Kim van der Riet2007-01-042-47/+1
| | | | | | tidy-up in related code. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@492756 13f79535-47bb-0310-9956-ffa450edef68
* - rpm: make rpm now builds RPMs under rpm/ directory.Alan Conway2006-12-231-0/+45
| | | | | | | | | - 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@489905 13f79535-47bb-0310-9956-ffa450edef68
* missed files from last commit.Carl C. Trieloff2006-12-211-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489422 13f79535-47bb-0310-9956-ffa450edef68
* Support for multi version, merge part 1. - can still refactor out dup use ofCarl C. Trieloff2006-12-201-0/+5
| | | | | | | | version object in client and server opperations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@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@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@488808 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@488304 13f79535-47bb-0310-9956-ffa450edef68
* Added some doxygen comments for the client API.Gordon Sim2006-12-131-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486747 13f79535-47bb-0310-9956-ffa450edef68
* Sundry fixes to spec and build system for RPM packaging.Alan Conway2006-12-131-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486428 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-11 Alan Conway <aconway@redhat.com>Alan Conway2006-12-121-41/+47
| | | | | | | | | | | * 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@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@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@485780 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Andrew Stitcher:Gordon Sim2006-12-042-2/+2
| | | | | | | | | | This patch improves the performance of my test by about 20% It removes a lot of unnecessary string creation, as ...::check(...) is called for every CHECK_APR_SUCCESS(), and they are very frequent. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482262 13f79535-47bb-0310-9956-ffa450edef68
* Re-enable signal handling. Make APRAcceptor::shutdown() threadsafe.Gordon Sim2006-12-011-8/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481305 13f79535-47bb-0310-9956-ffa450edef68
* Path from Jim Meyering (sent to qpid-dev list) to fix issue with gen.mk plus ↵Gordon Sim2006-12-011-8/+8
| | | | | | apr dependencies etc. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481262 13f79535-47bb-0310-9956-ffa450edef68
* Buliding APR code, running python tests.Alan Conway2006-12-011-27/+34
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481175 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-01 Jim Meyering <meyering@redhat.com>Alan Conway2006-12-0182-0/+6292
This delta imposes two major changes on the C++ hierarchy: - adds autoconf, automake, libtool support - makes the hierarchy flatter and renames a few files (e.g., Queue.h, Queue.cpp) that appeared twice, once under client/ and again under broker/. In the process, I've changed many #include directives, mostly to remove a qpid/ or qpid/framing/ prefix from the file name argument. Although most changes were to .cpp and .h files under qpid/cpp/, there were also several to template files under qpid/gentools, and even one to CppGenerator.java. Nearly all files are moved to a new position in the hierarchy. The new hierarchy looks like this: src # this is the new home of qpidd.cpp tests # all tests are here. See Makefile.am. gen # As before, all generated files go here. lib # This is just a container for the 3 lib dirs: lib/client lib/broker lib/common lib/common/framing lib/common/sys lib/common/sys/posix lib/common/sys/apr build-aux m4 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481159 13f79535-47bb-0310-9956-ffa450edef68