summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright & license header to use SPDX idAlan Antonuk2021-07-2716-520/+33
| | | | | | | This makes license detection machine-readable, and makes source files more concise and easier to read and understand. Signed-off-by: GitHub <noreply@github.com>
* cmake: modernize examples CMakeListsAlan Antonuk2021-04-191-38/+32
|
* Move official includes to rabbitmq-c/ directoryAlan Antonuk2021-04-0512-24/+24
| | | | | | | | | | | | | | | Move official rabbitmq-c includes under the rabbitmq-c, thus new programs should use the following include paths: amqp.h -> rabbitmq-c/amqp.h amqp_tcp_socket.h -> rabbitmq-c/tcp_socket.h amqp_ssl_socket .h-> rabbitmq-c/ssl_socket.h amqp_framing.h -> rabbitmq-c/framing.h Existing include files are left with a warning message and including their new equivalents, so existing programs should compile without modification. Signed-off-by: GitHub <noreply@github.com>
* Support openssl engine settingHan Mai2020-06-251-2/+7
|
* Fix mem leak in examplesAndriy Gelman2020-01-312-0/+4
| | | | Frees heap allocated memory in queuename.bytes on exit.
* Examples: fix argument parsing in sendstring examplejerome2018-05-071-2/+2
|
* examples: fix building against static librabbitmq.Eduard Egorov2018-03-281-0/+4
|
* Examples: Update amqp_ssl_connect.c to show how to un-initialize SSL library.Jesus Fernandez Manzano2018-01-301-0/+1
| | | | | After commit b80de27b, users have to explicitly un-initialize OpenSSL if they care to.
* Examples: remove duplicate amqps_* examplesrm-amqps-examplesAlan Antonuk2018-01-0910-1291/+2
| | | | | | | amqps_* examples only differ in the connection, and are otherwise duplicates of the amqp_* examples. Delete these examples and rename amqps_connection_timeout.c to amqp_ssl_connect.c to demonstrate how to connect over SSL.
* Format code with clang-formatAlan Antonuk2017-12-0522-376/+398
|
* Remove vim mode lines.formatAlan Antonuk2017-12-0424-24/+0
| | | | They're hard to keep in sync with .clang-format or other tools.
* Examples: remove #include <amqp_framing.h>Alan Antonuk2017-12-0419-45/+37
| | | | | amqp_framing.h is included by amqp.h, user code should not need to include this.
* Remove unneeded bracesJuan Eugenio Abadie2017-10-071-22/+20
|
* Fix: small warning fixes.Alan Antonuk2016-04-093-6/+5
|
* Lib: correct format string in amqp[s]_consumer.cAlan Antonuk2016-04-092-2/+2
|
* Lib: use for(;;) for infinite loopAlan Antonuk2016-04-097-7/+7
|
* Examples: fix incorrect shadowing of loop variableAlan Antonuk2016-04-091-3/+3
|
* Examples: use correct format specifier for uint16_tAlan Antonuk2016-04-091-2/+2
|
* Examples: add verify opts to SSL connect_timeoutAlan Antonuk2016-03-071-24/+28
| | | | Add verifypeer, verifyhostname options to amqps_connect_timeout example.
* Examples: add flags to enable verification.Alan Antonuk2016-03-078-56/+156
| | | | | | | Add verifypeer flag to enable verification of broker's certificate, and verifyhostname flag to enable verification of broker's hostname. Fixes #194
* Fix compiler warnings of visual studioCodeJuan2015-10-231-1/+1
|
* VMS: remove OpenVMS-related build-system.Alan Antonuk2015-10-131-41/+0
| | | | The build-system is not tested and very much out of date. Remove this dead code.
* Win32: fixup a few MSVC warnings in test & examplesAlan Antonuk2015-06-021-1/+1
|
* examples: replace usleep() with nanosleep()Maciej Borzecki2015-05-141-5/+5
| | | | | | | Accessing usleep() requires _BSD_SOURCE feature test macro to be set. However, _SVID_SOURCE is set as well, what will cause deprecation warnings when building with glibc >= 2.20. The patch replaced usleep() with nanosleep() to avoid these problems.
* Fix int truncation warnings on Win32Alan Antonuk2015-05-041-1/+1
|
* Enable auto_delete & internal for exchange.declaredeclare_xchg_parmsAlan 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