summaryrefslogtreecommitdiff
path: root/cpp/lib
Commit message (Collapse)AuthorAgeFilesLines
* Applied rev 573516 from M2.1: Fixes for QPID-581 & QPID-563Gordon Sim2007-09-124-7/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@574876 13f79535-47bb-0310-9956-ffa450edef68
* Applied fix (submitted as patch to qpid-dev by Nuno Santos): include headers ↵Gordon Sim2007-09-121-0/+1
| | | | | | used in posix wrappers. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@574873 13f79535-47bb-0310-9956-ffa450edef68
* Fixes for QPID-544 and QPID-548Gordon Sim2007-08-138-5/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@565284 13f79535-47bb-0310-9956-ffa450edef68
* Ignore QPID_ env variables that don't correspond to known options.Alan Conway2007-07-202-13/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@558099 13f79535-47bb-0310-9956-ffa450edef68
* Remove -ldaemon, we no longer require libdaemon.Alan Conway2007-07-201-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@558083 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the license from the "old" apache copyright noticeAndrew Stitcher2007-07-2014-182/+224
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@558072 13f79535-47bb-0310-9956-ffa450edef68
* * lib/broker/Daemon.cpp, .hAlan Conway2007-07-193-135/+160
| | | | | | | | | | | | | | | | | - Rewrote to remove libdaemon dependency. - PID file stored in /var/run if root, /tmp otherwise. * src/qpidd.cpp: Use new Daemon.cpp. - lock files stored in /var/run (for root) or /tmp. - updated to trunk daemon flag behavior. * lib/broker/Makefile.am (libqpidbroker_la_LIBADD): - Daemon.cpp now needs -lboost_iostreams * NOTICE, README: Removed mention of libdaemon. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@557452 13f79535-47bb-0310-9956-ffa450edef68
* Added license to files that seemed to be missing it.Gordon Sim2007-07-055-0/+92
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@553447 13f79535-47bb-0310-9956-ffa450edef68
* Patch submitted to qpid-dev by ksmith@redhat.com. Fixes concurrency issues ↵Gordon Sim2007-05-2215-30/+121
| | | | | | | | | | | | | | | | arising from previous move to use singleton apr pool. "My patch does three things: 1) Modifies the APRPool class to use alloc/free semantics for APR memory pools. Each time a caller calls APRPool::get() they'll their own pool reference. I've fixed up all the call sites I can find to also call APRPool::free() at the appropriate time. 2) Caches freed APR memory pools in a STL stack. This cuts down on the number of memory pools created overall. 3) As a result of doing #1 and #2 I've introduced a guard mutex around APRPool::get() and APRPool::free(). This is to prevent concurrent access to the memory pool cache. If it's too heavyweight, the mutex along with the caching mechanism could be removed entirely." git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@540511 13f79535-47bb-0310-9956-ffa450edef68
* Made message less scary when persistence not enabled(!).Gordon Sim2007-05-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@540169 13f79535-47bb-0310-9956-ffa450edef68
* Fix for acknowledgements (since the addition of the protocol version, the ↵Gordon Sim2007-05-111-2/+2
| | | | | | 'wrong' constructor to BasicAckBody was being called resulting in random values for delivery tag and multiple) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@537171 13f79535-47bb-0310-9956-ffa450edef68
* * Added support for channel.flow:Gordon Sim2007-05-098-21/+54
| | | | | | | | | | | | | | | | | | | | | | cpp/tests/ChannelTest.cpp cpp/lib/broker/SessionHandlerImpl.cpp cpp/lib/broker/BrokerChannel.h cpp/lib/broker/BrokerChannel.cpp * Fixed client connection closing process: cpp/lib/common/sys/apr/Socket.cpp cpp/lib/client/Connector.h cpp/lib/client/Connector.cpp cpp/lib/client/Connection.h cpp/lib/client/Connection.cpp * Use amq.direct rather than default exchange in P2P test (to interop with java) cpp/tests/BasicP2Ptest.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536584 13f79535-47bb-0310-9956-ffa450edef68
* * lib/broker/Daemon.cpp: Fixed bug causing qpidd -c to sometmes delete the ↵Alan Conway2007-05-081-1/+1
| | | | | | pidfile. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536279 13f79535-47bb-0310-9956-ffa450edef68
* Initial interop tests for c++.Gordon Sim2007-05-081-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536253 13f79535-47bb-0310-9956-ffa450edef68
* Added -M2 tag to RPM release.Alan Conway2007-04-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@533840 13f79535-47bb-0310-9956-ffa450edef68
* * README: added new dependency, libdaemon.Alan Conway2007-04-303-1/+242
| | | | | | | | | | | | | | | | | | * qpidc.spec.in: libdaemon dependencies. * broker/Daemon.h|cpp: Daemon and pid file management, wrapper for libdaemon. * qpidd.cpp modifid flags -d [ --daemon ] - waits till deamon is listening before returning. * qpidd.cpp: new flags -q [ --quit ] Stop the running daemon politely. -k [ --kill ] Kill the running daemon harshly. -c [ --check ] If daemon is running return 0. --wait SECONDS (=10) Maximum wait for daemon response. --ppid Print daemon pid to stdout * tests/dameon_test: Test daemon startup, shutdown. * deleted tests/broker: obsolete script. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@533819 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 532430 by hand fromAlan Conway2007-04-264-127/+25
| | | | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/trunk/qpid/cpp ------------------------------------------------------------------------ r532750 | aconway | 2007-04-26 10:13:14 -0400 (Thu, 26 Apr 2007) | 4 lines - docs/man/qpidd.x: explain file and environment configuration. - src/qpidd.cpp: read config from file. ------------------------------------------------------------------------ r532491 | aconway | 2007-04-25 17:26:53 -0400 (Wed, 25 Apr 2007) | 4 lines Added environment variables as a source of Qpid configuration. Option "foo-bar" will be read from env. QPID_FOO_BAR if not specified on command line. ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@532791 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 532430 by hand fromAlan Conway2007-04-2612-450/+327
| | | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/branches/trunk/qpid/cpp ------------------------------------------------------------------------ r532430 | aconway | 2007-04-25 14:06:14 -0400 (Wed, 25 Apr 2007) | 10 lines * qpid/CommonOptions.h: - Convenience classs/functions to use boost::program_options. - CommonOptions class for options common to client/broker. * qpid/broker/Broker.h: - Replaced broker::Configuration with class Broker::Options, derived from CommonOptions. * qpidd.cpp: Updated options handling. * qpid/Exception.h: Added strError function to get std::string from errno. ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@532787 13f79535-47bb-0310-9956-ffa450edef68
* Send missing recoverOk response to recover.Alan Conway2007-03-051-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@514903 13f79535-47bb-0310-9956-ffa450edef68
* Check for existing channel on channel_openGordon Sim2007-02-211-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@510159 13f79535-47bb-0310-9956-ffa450edef68
* Add durability property to queues and pass this to broker on declare.Gordon Sim2007-02-143-14/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507582 13f79535-47bb-0310-9956-ffa450edef68
* * lib/client/Connection.h - changed default virtual host from '/' to '' as ↵Gordon Sim2007-02-122-2/+2
| | | | | | | | | | per QPID-349 * lib/client/ClientExchange.h - fixed typo in a comment git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@506406 13f79535-47bb-0310-9956-ffa450edef68
* Fixed creation of error message for unknown channel.Gordon Sim2007-01-221-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@498591 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/qpid@497439 13f79535-47bb-0310-9956-ffa450edef68
* Close connection when connection.close is sent to client.Gordon Sim2007-01-182-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@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/qpid@496665 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-08 Jim Meyering <meyering@redhat.com>Alan Conway2007-01-152-1/+4
| | | | | | | | | | | | | | | Ensure that AccumulatedAck.range is not used uninitialized. * lib/broker/AccumulatedAck.h (AccumulatedAck): Make this a class, rather than a struct. (AccumulatedAck::AccumulatedAck): Add a constructor to require initialization of the "range" member. * lib/broker/BrokerChannel.cpp (Channel) [accumulatedAck]: Initialize. * tests/TxAckTest.cpp (TxAckTest) [acked]: Likewise. * tests/AccumulatedAckTest.cpp (testCovers): Initialize local. (testUpdateAndConsolidate): Likewise. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496317 13f79535-47bb-0310-9956-ffa450edef68
* With thanks to Jim Meyering and Rafael Schloming: Fix incorrect error numberAlan Conway2007-01-121-1/+1
| | | | | | | | shown by python test failure in: testDifferentDeclaredType (tests.exchange.MiscellaneousErrorsTests) ... git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495661 13f79535-47bb-0310-9956-ffa450edef68
* Fix build order: common first.Alan Conway2007-01-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@494587 13f79535-47bb-0310-9956-ffa450edef68
* Most of remaining version changes for C++. Still need to deal with AMQFrameCarl C. Trieloff2007-01-0913-75/+76
| | | | | | | | 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
* 2007-01-05 Jim Meyering <meyering@redhat.com>Alan Conway2007-01-052-3/+5
| | | | | | | | | * lib/broker/Makefile.am (libqpidbroker_la_LIBADD): Define, so we link with libqpidcommon.la. * lib/client/Makefile.am (libqpidclient_la_LIBADD): Likewise. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@493151 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/qpid@492756 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