summaryrefslogtreecommitdiff
path: root/cpp/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed race condition in the examples: when a listener program printsAlan Conway2008-02-182-36/+43
| | | | | | | | | | | | | its "ready" message, the commands it has sent to the broker may not yet be complete. This results in sporadic lost messages if the producer is started immediately (e.g. by a script.) - Added Session::sync(), wait till all commands to date have completed. - Call sync() before printing "ready" in listener example programs - Removed sleep from verify script git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@628875 13f79535-47bb-0310-9956-ffa450edef68
* Fix problem with verify script in ../../bin.Alan Conway2008-02-181-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@628846 13f79535-47bb-0310-9956-ffa450edef68
* Added sleep to verify script to avoid startup races.Alan Conway2008-02-181-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@628827 13f79535-47bb-0310-9956-ffa450edef68
* Updated c++ and python fanout examples and verify scripts.Alan Conway2008-02-1510-109/+106
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@628169 13f79535-47bb-0310-9956-ffa450edef68
* Fix verify error in Makefile.amAlan Conway2008-02-122-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@627141 13f79535-47bb-0310-9956-ffa450edef68
* Create a tar file of verify scripts suitable for untarring into and ↵Alan Conway2008-02-123-88/+12
| | | | | | installed examples directory. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@627128 13f79535-47bb-0310-9956-ffa450edef68
* cpp/examples/direct, fanout: Converted listener.cpp to SubscriptionManager.Alan Conway2008-02-0828-214/+265
| | | | | | | | | All python/cpp combos run as part of cpp/examples make check. Fixed problems with verify scripts and VPATH builds. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@620014 13f79535-47bb-0310-9956-ffa450edef68
* Added verify scripts to run mixed python/cpp examples.Alan Conway2008-02-0816-15/+214
| | | | | | bin/verify_all runs all examples. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@619941 13f79535-47bb-0310-9956-ffa450edef68
* Refactored verify scripts, added verify for python Examples.Alan Conway2008-02-086-93/+31
| | | | | | | | | | | | | | To verify an example: <qpid-trunk>/bin/verify <example-dir> See comments in bin/verify for more details. Changes: - Each example dir has its own verify script and verify.in. - Added sys.stdout.flush() to som python examples so verify can tell when they're ready. - Made python examples svn:executable. - C++ examples/Makefile.am runs python examples git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@619903 13f79535-47bb-0310-9956-ffa450edef68
* Disable QPID_DATA_DIR for verify tests.Alan Conway2008-02-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@619611 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in script - not passing $ARGS to background processes.Alan Conway2008-01-241-4/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@614880 13f79535-47bb-0310-9956-ffa450edef68
* verify: kill any stray child processes on exit.Alan Conway2008-01-231-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@614648 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug in verify - was not properly killing ./server process inAlan Conway2008-01-235-51/+45
| | | | | | | request-response example. Streamlined example scripts a little. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@614646 13f79535-47bb-0310-9956-ffa450edef68
* examples/Makefile.am:Alan Conway2008-01-233-2/+8
| | | | | | | | | | | | | | - verify.tar target, tars up verify script for easy transport to installation. examples/examples/pub-sub/verify.in: fixed typeo. examples/verify: don't kill the pub-sub listener, it should exit gracefully. src/qpid/client/Dispatcher.cpp src/qpid/client/SubscriptionManager.cpp - Fix uninitialized autoStop member variable. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@614587 13f79535-47bb-0310-9956-ffa450edef68
* Take space out the queue name as it currently upsets the java client when ↵Gordon Sim2008-01-232-7/+7
| | | | | | used in the reply-to field. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@614569 13f79535-47bb-0310-9956-ffa450edef68
* Add optional host, port arguments to all example clients.Alan Conway2008-01-1814-45/+59
| | | | | | | | | | Verify can start private broker & pass host/port to examples, by default it still uses local host/standard port. Added host:port to Socket error messages. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@613018 13f79535-47bb-0310-9956-ffa450edef68
* Use amq.direct in reply to (as queue is bound to that exchange anyway)Gordon Sim2008-01-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612810 13f79535-47bb-0310-9956-ffa450edef68
* examples/Makefile.am: Fixed build failures.Alan Conway2007-12-145-429/+13
| | | | | | | | | | | Removed unused files: examples/examples/direct/direct_persistent_config_queues.cpp examples/examples/direct/direct_persistent_publisher.cpp examples/examples/direct/direct_publisher.cpp examples/examples/fanout/fanout_publisher.cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@604291 13f79535-47bb-0310-9956-ffa450edef68
* verify: starts its own broker when run in build.Alan Conway2007-12-144-180/+12
| | | | | | | Makefile.am: fixed verify issues. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@604249 13f79535-47bb-0310-9956-ffa450edef68
* From: Jonathan Robie <jrobie@redhat.com>Alan Conway2007-12-1415-62/+448
| | | | | | | | | - Updated examples and verify script. From me: Integration of verify in make check. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@604235 13f79535-47bb-0310-9956-ffa450edef68
* examples/verify: Modified so it can be run in a checkout or in an installation.Alan Conway2007-12-131-5/+6
| | | | | | | | checkout: cd cpp/examples/examples; ../verify installed: cd <installed>/examples; <checkout>/cpp/examples/verify git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@604031 13f79535-47bb-0310-9956-ffa450edef68
* Make sure abs_srcdir is defined (for older automake versions)Alan Conway2007-12-101-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602984 13f79535-47bb-0310-9956-ffa450edef68
* src/tests/Makefile.am: Add BrokerFixture.h to sourc listsAlan Conway2007-12-071-1/+1
| | | | | | | examples/Makefile.am: Fix typo. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602239 13f79535-47bb-0310-9956-ffa450edef68
* examples/verifyAlan Conway2007-12-077-50/+208
| | | | | | | | | | | | | - run installed examples and verify their output. examples/examples/*/verify.in - expected output of example, may be filtered/sorted for some examples. examples/Makefile.am - add verify to installcheck target. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602140 13f79535-47bb-0310-9956-ffa450edef68
* Remove reference to deleted fileGordon Sim2007-12-061-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601723 13f79535-47bb-0310-9956-ffa450edef68
* Fixed minor problems with example Makefiles.Alan Conway2007-12-055-120/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601538 13f79535-47bb-0310-9956-ffa450edef68
* Removed deleted programGordon Sim2007-12-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601468 13f79535-47bb-0310-9956-ffa450edef68
* Removed line for deleted file.Gordon Sim2007-12-051-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601407 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary file.Gordon Sim2007-12-052-131/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601392 13f79535-47bb-0310-9956-ffa450edef68
* examples/Makefile.am:Alan Conway2007-12-041-8/+6
| | | | | | | | | | - installcheck target builds installed examples. - Automatically run by rpmbuild and distcheck targets. rubygen/generate: fixed packaging error in rubygen.mk src/Makefile.am: fixed packaging error. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601125 13f79535-47bb-0310-9956-ffa450edef68
* Package examples in rpm %doc directory.Alan Conway2007-11-0921-92/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593638 13f79535-47bb-0310-9956-ffa450edef68
* Functions for scripts that verify examples.Alan Conway2007-11-091-0/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593531 13f79535-47bb-0310-9956-ffa450edef68
* Makefile to build/distribute examples.Alan Conway2007-11-091-9/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593415 13f79535-47bb-0310-9956-ffa450edef68
* QPID-676: Jonathan Robie's C++ examples.Alan Conway2007-11-0919-110/+1618
| | | | | | | | | | | | | | | Made the following alterations for recent C++ API changes: - use arg:: namespace for Session keyword arguments. - removed trailing _ on session method names. cpp/examples/Makefile.am calls make in each example directory with flags to build examples from headers/libraries SVN checkout. Examples themselves have a plain Makefile (not automake) which will work as is if qpid is installed in standard places. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593402 13f79535-47bb-0310-9956-ffa450edef68
* Improvements to gsim's SubscriptionManager:Alan Conway2007-11-021-52/+123
| | | | | | | | | | - auto-stop mode: run returns when all subscriptions cancelled. - flow control. examples/topic_listener.cpp updated to use SubscriptionManager. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@591388 13f79535-47bb-0310-9956-ffa450edef68
* Fixed stray #include QpidError.h missed in previous commit.Alan Conway2007-10-263-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@588780 13f79535-47bb-0310-9956-ffa450edef68
* Renamed the following files for consistency:Alan Conway2007-09-253-9/+9
| | | | | | | | | | | | | | | | | | broker/BrokerExchange.cpp -> Exchange.cpp broker/BrokerExchange.h -> Exchange.h broker/BrokerQueue.cpp -> Queue.cpp broker/BrokerQueue.h -> Queue.h client/ClientChannel.cpp -> Channel.cpp client/ClientChannel.h -> Channel.h client/ClientConnection.cpp -> Connection.cpp client/ClientExchange.cpp -> Exchange.cpp client/ClientExchange.h -> Exchange.h client/ClientMessage.h -> Message.h client/ClientQueue.cpp -> Queue.cpp client/ClientQueue.h -> Queue.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@579340 13f79535-47bb-0310-9956-ffa450edef68
* - added sleep to waiting thread.Carl C. Trieloff2007-07-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@553873 13f79535-47bb-0310-9956-ffa450edef68
* Examples update, exception handling.Alan Conway2007-06-133-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@546995 13f79535-47bb-0310-9956-ffa450edef68
* Example updates from jrobie.Alan Conway2007-06-132-12/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@546858 13f79535-47bb-0310-9956-ffa450edef68
* Initial examples directory with jrobies example programs and Makefile.am.Alan Conway2007-06-124-0/+278
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@546612 13f79535-47bb-0310-9956-ffa450edef68