summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Enable auto_delete & internal for exchange.declareAlan Antonuk2014-10-192-2/+2
| | | | | | | | Enable auto_delete and internal parameters of amqp_exchange_declare() in codegen. These were once not generated because RabbitMQ did not support these parameters. The broker now supports these and so should we. This fixes #218
* Print message body in amqp[s]_listen[q] examples.Alan Antonuk2014-09-014-0/+12
| | | | This fixes #199.
* FIX: destroy amqp_envelope_t in consumer exampleAlan Antonuk2013-08-202-0/+5
| | | | Make sure to destroy the envelope object in the amqp_consumer.c example
* Add a high level API for consuming messagesAlan Antonuk2013-07-086-336/+170
|
* Add nonblocking connect supportzaq178miami2013-07-063-0/+248
|
* Make connection the socket object ownerAlan Antonuk2013-07-0317-34/+17
| | | | | | | | Improve the socket interface by making the amqp_connection_state_t object the amqp_socket_t owner, and tie its lifetime to the connection's lifetime. This prevents a class of silly errors where the socket object isn't freed, or the socket object is assigned to two different connection objects
* OpenVMS MMS build systemAlan Antonuk2013-06-261-0/+41
| | | | Tested on OpenVMS v8.3 - Alpha. Likely to work on IA based systems as well
* Preserve API/ABI of amqp_error_string()Alan Antonuk2013-06-141-2/+2
| | | | | | Preserve API/ABI of amqp_error_string() by having it return a string allocated on the heap. Deprecate this function in favor of amqp_error_string2() which returns a statically allocated string
* Change amqp_error_string() to ret static stringsAlan Antonuk2013-06-131-3/+1
| | | | This is an API/ABI break.
* Updating license header in new filesAlan Antonuk2013-04-178-0/+48
|
* Fix code formatting to match the rest of the libAlan Antonuk2013-04-179-125/+149
|
* Adding vim modelines to new filesAlan Antonuk2013-04-178-0/+8
|
* Examples must link against ${RMQ_LIBRARY_TARGET}Alan Antonuk2013-04-171-10/+10
| | | | | | SSL examples should link against the ${RMQ_LIBRARY_TARGET} in the examples directory. This allows either static or shared library to be built.
* Start addressing review commentsMichael Steinert2013-04-0917-17/+17
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Set the client key/cert in one API callMichael Steinert2013-04-098-64/+8
| | | | | | | | It doesn't make much sense to have separate APIs to set the client key/cert pair. This change also make it easier to port to other backends. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Update RPC example to use new socket APIMichael Steinert2013-04-091-5/+14
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add API to load SSL keys from a bufferMichael Steinert2013-04-098-14/+70
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Convert amqp:// examples to use new socket APIMichael Steinert2013-04-098-40/+112
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Propose new socket APIMichael Steinert2013-04-0910-74/+236
| | | | | | | | | The general idea is to have a non-instantiable socket base class. Connection-specific sub-classes provide a constructor and methods for modifying connection parameters. `amqp_socket_close()` is the destructor. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add SSL/TLS examplesMichael Steinert2013-04-099-1/+1036
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Updating license yearAlan Antonuk2013-04-0813-0/+39
|
* Formatted source code with astyle utiltyAlan Antonuk2013-04-0811-177/+217
|
* Adding vim modelines to help with source formattingAlan Antonuk2013-04-0514-0/+14
|
* CMake: build both static and shared libs in one buildAlan Antonuk2012-11-141-8/+8
|
* Removing exec bit from amqp_rpc_sendstring_client.cAlan Antonuk2012-10-241-0/+0
| | | | Somehow it had 0755 permissions, should be 0644
* New example: amqp_rpc_sendstring_client. The client sends a plain text ↵Jani Hur2012-10-052-0/+231
| | | | message to a queue and expects to receive a reply to a private reply_to queue.
* Adding more strict compile Warning flags to gcc buildAlan Antonuk2012-05-241-1/+1
| | | | | | | | Added: -Wall -Wextra -pedantic -Wstrict-prototypes -Wcast-align -Wno-unused-function -fno-common -fvisibility=hidden The library compiles cleanly with the exception of the tools dir which has trouble with the initializer lists
* Cleanup Win32 artifactsMichael Steinert2012-05-172-1/+1
| | | | | | | 1. Standardize on `win32` vs `windows/win32` 2. Move `msinttypes` into platform directory Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Fix compiler warnings (checked clang & gcc)Michael Steinert2012-05-172-2/+2
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Convert to non-recursive AutomakeMichael Steinert2012-05-171-33/+0
| | | | | | | | This change should speed up parallel builds considerably. It also simplifies the structure of the build system making it possible to properly track dependencies. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Merge remote-tracking branch 'upstream/bug24770'Alan Antonuk2012-04-1212-321/+249
|\
| * Automated relicensing of source files MPL/GPL -> MITMarek Majkowski2012-04-1212-321/+249
| |
* | Merge remote-tracking branch 'upstream/bug24606'Alan Antonuk2012-04-1212-12/+12
|\ \ | |/
| * Update copyright 2012Emile Joubert2012-02-0212-12/+12
| |
* | Fix for stdint.h not found in exampleswin32_example_include_fixAlan Antonuk2012-03-061-1/+1
|/
* Fix: correct platform_utils directory under win32Alan Antonuk2011-11-011-1/+1
|
* Building the rest of the example programsAlan Antonuk2011-10-301-1/+34
|
* add cmake build support.XiaoGuang Zeng2011-03-031-0/+4
| | | | librabbitmq and example/amqp_sendstring can be build under linux now.
* Remove trailing whitespaceDavid Wragg2011-07-053-3/+3
|
* Update copyright noticesDavid Wragg2011-03-0112-228/+84
| | | | And generally bring debian/copyright up to date.
* More fixes for VPATH-based buildsTony Garnock-Jones2010-12-171-1/+5
| | | | Reported by Tony Garnock-Jones.
* Add newlines on error messages in examplesDavid Wragg2010-10-281-4/+4
|
* Make the examples compile and work under WindowsDavid Wragg2010-10-2113-58/+255
|
* Eliminate the AMQP_EMPTY_* macros from amqp.hDavid Wragg2010-10-216-12/+12
| | | | Hooray, amqp.h is now ISO C90 clean.
* Use the msinttypes header when building with the Microsoft compilerDavid Wragg2010-10-211-0/+4
|
* Pass "-ansi -pedantic" to gcc, so it tells us when we stray from C90David Wragg2010-10-211-0/+8
| | | | | | | | And fix up the resulting warnings We don't use "-ansi -pedantic" in the tools dir, because that code relies on libpopt, and so is unlikely ever to work with the Microsoft compiler anyway.
* Eliminate // commentsDavid Wragg2010-10-212-3/+3
| | | | They are not allowed in ISO C90.
* removed auto-delete parameter from exchange.declareAlexandru Scvortov2010-08-161-1/+1
|
* merged default into bug22951Alexandru Scvortov2010-08-043-3/+3
|\
| * this branch is default with amqp_0_9_1 merged in; everything seems to work fineAlexandru Scvortov2010-07-093-3/+3
| |