summaryrefslogtreecommitdiff
path: root/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* * cpp/src/broker/BrokerMessageMessage.h: Change reference from weak_ptr toAlan Conway2007-04-056-6/+49
| | | | | | | | | | | | | | shared_ptr. Broker messages hold their reference. * cpp/src/broker/Reference.cpp (close): clear messages array to break shared_ptr cycle and avoid a leak. * cpp/src/client/MessageMessageChannel.cpp (publish): Support references for large messages. * cpp/src/shared_ptr.h (make_shared_ptr): added deleter variant. * cpp/src/tests/ClientChannelTest.cpp: Enabled testGetNoContent, testGetFragmentedMessage git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525964 13f79535-47bb-0310-9956-ffa450edef68
* * Exteneded use of shared pointers frame bodies across all send() commands.Alan Conway2007-04-0516-77/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/Makefile.am: added check-unit target to run just unit tests. * Introduced make_shared_ptr convenience function for wrapping plain pointers with shared_ptr. * cpp/src/client/ClientChannel.h,cpp (sendsendAndReceive,sendAndReceiveSync): Pass shared_ptr instead of raw ptr to fix memory problems. Updated the following files to use make_shared_ptr - src/client/BasicMessageChannel.cpp - src/client/ClientConnection.cpp * src/client/MessageMessageChannel.cpp: implemented 0-9 message.get. * src/framing/Correlator.h,cpp: Allow request sender to register actions to take when the correlated response arrives. * cpp/src/tests/FramingTest.cpp: Added Correlator tests. * src/framing/ChannelAdapter.h,cpp: use Correlator to dispatch response actions. * cpp/src/shared_ptr.h (make_shared_ptr): Convenience function to make a shared pointer from a raw pointer. * cpp/src/tests/ClientChannelTest.cpp: Added message.get test. * cpp/src/tests/Makefile.am (check-unit): Added test-unit target to run unit tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525932 13f79535-47bb-0310-9956-ffa450edef68
* * Further (minor) changes to the interface between store and broker.Gordon Sim2007-04-0516-170/+137
| | | | | | | | | * TxBuffer now uses shared_ptr to TxOps (removed DeletingTxOp) * Queue now persists the field table of settings git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525801 13f79535-47bb-0310-9956-ffa450edef68
* * Made client::Channel bi-modal: 0-8 or 0-9 modes.Alan Conway2007-04-046-56/+488
| | | | | | | | * Added dummy impl of client::MessageMessageChannel. * Generalised ClientChannelTest to be able to test both modes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525542 13f79535-47bb-0310-9956-ffa450edef68
* * tests/FramingTest.cpp: Fixed integer types to build on 64 bit architecturesAlan Conway2007-04-032-15/+15
| | | | | | | * tests/test_env: added missing executable property. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525310 13f79535-47bb-0310-9956-ffa450edef68
* * Remove redundant Makefile.am, not needed with single src/ makefile.Alan Conway2007-04-035-179/+10
| | | | | | | * Fixed automake warnings. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525297 13f79535-47bb-0310-9956-ffa450edef68
* Moved BasicMessage::WaitableDestination to ↵Alan Conway2007-04-034-63/+72
| | | | | | IncomingMessage::WaitableDestination so it can be shared by Basic and Message implementations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525282 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/src/broker/Broker.cpp: Join cleaner thread.Alan Conway2007-04-034-143/+160
| | | | | | | | | * cpp/src/broker/BrokerMessageMessage.h, .cpp, ReferenceTest: - Broke reference cycle between broker::MessageMessage and Reference by using a weak_ptr in MessageMessage git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525244 13f79535-47bb-0310-9956-ffa450edef68
* Run selected python tests with make check TESTS=python_tests ↵Alan Conway2007-04-021-1/+1
| | | | | | PYTHON_TESTS=<some test> git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524943 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in flags.Alan Conway2007-04-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524941 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in previous commit.Alan Conway2007-04-021-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524938 13f79535-47bb-0310-9956-ffa450edef68
* * src/tests/examples.README,examples.Makefile: out of date, removed.Alan Conway2007-04-029-204/+164
| | | | | | | | | | * src/tests/README: details on running tests. * cpp/README: Point to src/tests/README * src/tests/ .valgrind.supp, .valgrindrc-default: moved valgrind options to file, easier to modify locally updated suppressions (see README) * src/tests/test_env, run-unit-tests: more flexible test running (see README) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524913 13f79535-47bb-0310-9956-ffa450edef68
* More QPID-243Andrew Stitcher2007-04-023-6/+168
| | | | | | | | * Moved most of the C++ make into src/Makefile.am * There is still a separate src/tests/Makefile.am git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524847 13f79535-47bb-0310-9956-ffa450edef68
* Fix for the most disruptive items in QPID-243.Andrew Stitcher2007-04-02276-14/+25975
| | | | | | | | | | | | * 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/qpid@524769 13f79535-47bb-0310-9956-ffa450edef68
* Renamed cpp-0-9 to cppAlan Conway2007-03-212-0/+97
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520706 13f79535-47bb-0310-9956-ffa450edef68
* * cpp: svn removed, will rename cpp-0-9Alan Conway2007-03-212-97/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520705 13f79535-47bb-0310-9956-ffa450edef68
* - rpm: make rpm now builds RPMs under rpm/ directory.Alan Conway2006-12-231-0/+20
| | | | | | | | | - 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
* Sundry fixes to spec and build system for RPM packaging.Alan Conway2006-12-131-0/+3
| | | | 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-121-3/+3
| | | | | | | | | | | * 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
* Patch sumbitted to qpid-dev:Gordon Sim2006-12-061-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-05 Jim Meyering <meyering@redhat.com> Improve --help output. Add --version option. * lib/broker/Configuration.cpp: Include <config.h>. (Configuration::Configuration): Use the active voice. Handle --version. (Configuration::usage): Add Usage:... and bug-reporting address. Output short+long options like "-o, --option ...", so that help2man will format them properly. * lib/broker/Configuration.h: (class Configuration) [version, programName]: New members. (parse): Update prototype. (isVersion, setValue): New prototypes. * src/qpidd.cpp: Include <config.h>. (programName): New file-scoped global. (handle_signal, main): Emit diagnostics to stderr. (main): Pass program name to config.parse. (main): Handle new --version option. Also updated ConfigurationTest to use the modified parse() method. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482958 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-05 Jim Meyering <meyering@redhat.com>Alan Conway2006-12-051-2/+0
| | | | | | | * src/qpidd.cpp (main): Remove now-pointless FIXME comments. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482772 13f79535-47bb-0310-9956-ffa450edef68
* Re-enable signal handling. Make APRAcceptor::shutdown() threadsafe.Gordon Sim2006-12-011-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@481305 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-01 Jim Meyering <meyering@redhat.com>Alan Conway2006-12-01174-14088/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/qpid@481159 13f79535-47bb-0310-9956-ffa450edef68
* Patches from Andrew Stitcher to fix QPID-140, QPID-141.Alan Conway2006-11-302-8/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480994 13f79535-47bb-0310-9956-ffa450edef68
* Some further tweaks to MessageStore interface.Gordon Sim2006-11-309-33/+46
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480946 13f79535-47bb-0310-9956-ffa450edef68
* Changes for building on RHEL3. Also bundle debug and release libsSteven Shaw2006-11-301-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480934 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr-1 header includes.Alan Conway2006-11-292-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480657 13f79535-47bb-0310-9956-ffa450edef68
* Posix EventChannel implementation using epoll. Placeholder for kevents.Alan Conway2006-11-2935-638/+1371
| | | | | | | | Dynamic thread pool EventChannelThreads to serve EventChannel. Misc cleanup/enhancements. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480582 13f79535-47bb-0310-9956-ffa450edef68
* Bug fixes: corrected fragmentation of large messages in client, set buffer ↵Gordon Sim2006-11-282-11/+13
| | | | | | size on server to be the same as the max frame size (this still needs some work to be better managed and configurable). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480178 13f79535-47bb-0310-9956-ffa450edef68
* Modifications to allow loading of message data in chunks, refragmentation of ↵Gordon Sim2006-11-2814-73/+404
| | | | | | messages, plus some related refactoring and tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480087 13f79535-47bb-0310-9956-ffa450edef68
* Bug fix, basic_qos_ok was set to wrong type.Gordon Sim2006-11-271-29/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@479677 13f79535-47bb-0310-9956-ffa450edef68
* Initial sketching out of staging functionality for large messages (i.e. ↵Gordon Sim2006-11-2410-60/+201
| | | | | | allowing content to be stored as it arrives, rather than collecting it in memory until complete). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478923 13f79535-47bb-0310-9956-ffa450edef68
* Merged AMQP version-sensitive generated files with C++ trunk. Phase 1 of ↵Kim van der Riet2006-11-2227-152/+323
| | | | | | merge complete - all locations where version info is required in the framing, broker and client code, the version has been hard-coded to mahor=8, minor=0. Next step: make broker and client version-aware. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478237 13f79535-47bb-0310-9956-ffa450edef68
* Enclose any 'using std::string' statements within qpid namespaces to avoid ↵Gordon Sim2006-11-2215-25/+39
| | | | | | | | | | pollution of global namespaces. Explicit use of std::string in many places, especially for client APIs where not already done. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478212 13f79535-47bb-0310-9956-ffa450edef68
* Temporary fix to avoid type name clashes. Will very shortly move this ↵Gordon Sim2006-11-221-2/+1
| | | | | | definition of string into the qpid::framing namespace to avoid any pollution of the global namespace. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478183 13f79535-47bb-0310-9956-ffa450edef68
* QPID-120 Enabled qpid-cpp to build on RHEL3 with less pain.Steven Shaw2006-11-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477826 13f79535-47bb-0310-9956-ffa450edef68
* Added another example for client api.Gordon Sim2006-11-212-4/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477636 13f79535-47bb-0310-9956-ffa450edef68
* Modifications to recovery process to allow for recovery of default bindings.Gordon Sim2006-11-209-16/+99
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477148 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Andrew Stitcher to fix APR #include using apr-config.Alan Conway2006-11-1713-17/+19
| | | | | | | Fixed build problems with USE_APR= - builds OK but broker non-functional. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@476303 13f79535-47bb-0310-9956-ffa450edef68
* Some fixes and tests for bugs uncovered during testing of persistence.Gordon Sim2006-11-174-11/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@476108 13f79535-47bb-0310-9956-ffa450edef68
* Minor modifications for recovery and debug.Gordon Sim2006-11-165-13/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@475753 13f79535-47bb-0310-9956-ffa450edef68
* Re-enabled tracing of requests sent and received.Gordon Sim2006-11-154-8/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@475266 13f79535-47bb-0310-9956-ffa450edef68
* Added ability for broker to load a message store implementation from a library.Gordon Sim2006-11-158-4/+311
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@475181 13f79535-47bb-0310-9956-ffa450edef68
* Tidy-up of version codeKim van der Riet2006-11-134-9/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@474493 13f79535-47bb-0310-9956-ffa450edef68
* EventChannel classes, start of epoll-based posix implementation.Alan Conway2006-11-1312-50/+492
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@474452 13f79535-47bb-0310-9956-ffa450edef68
* update Apache licenses to the current versionStephen Vinoski2006-11-10152-1976/+2432
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@473568 13f79535-47bb-0310-9956-ffa450edef68
* Some more riguorous 'const' declarations in basic header properties. Some ↵Gordon Sim2006-11-104-69/+75
| | | | | | more comments in queue header. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@473352 13f79535-47bb-0310-9956-ffa450edef68
* Added POSIX equivalents to APR classes used by clients, inlined trivial calls.Alan Conway2006-11-09137-728/+1051
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@473087 13f79535-47bb-0310-9956-ffa450edef68
* Added some encode/decode routines to Message (plus test).Gordon Sim2006-11-096-6/+78
| | | | | | | | Altered Buffer to allow memory for data to be specified on construction. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472850 13f79535-47bb-0310-9956-ffa450edef68
* Removed invalid and redundant include.Gordon Sim2006-11-091-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472844 13f79535-47bb-0310-9956-ffa450edef68