summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools: print verbose error message when failed to open a socketEgor Ignatov2022-01-261-1/+1
|
* tools: enable ssl in connection_info if --ssl used with --serverEgor Ignatov2022-01-261-2/+6
|
* Update copyright & license header to use SPDX idAlan Antonuk2021-07-2714-442/+28
| | | | | | | 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: make tools-common depend on popt::poptAlan Antonuk2021-04-191-6/+6
| | | | Signed-off-by: GitHub <noreply@github.com>
* cmake: remove unused if(XMLTO_FOUND) in tools dirAlan Antonuk2021-04-191-34/+29
| | | | | | | This codepath should not be hit, as XMLTO is required to be defined if BUILD_TOOLS_DOCS is set (it should error-our earlier in CMake. Signed-off-by: GitHub <noreply@github.com>
* cmake: modernize tools CMakeListsAlan Antonuk2021-04-191-33/+33
| | | | Signed-off-by: GitHub <noreply@github.com>
* tools: remove unused config.h includeAlan Antonuk2021-04-199-36/+0
| | | | | | HAVE_CONFIG_H is never defined, thus this is never included. Signed-off-by: GitHub <noreply@github.com>
* cmake: specify COMPONENT on install commandsAlan Antonuk2021-04-111-4/+3
| | | | | | | | | | | | | | | | To help package managers cmake install commands now specify a COMPONENT. Components include: - rabbitmq-c-runtime: libraries necessary for running programs linked against rabbitmq-c. - rabbitmq-c-development: static libraries, headers necessary for building programs against rabbitmq-c - rabbitmq-c-tools: CLI tools for interacting with RabbitMQ broker - rabbitmq-c-tool-docs: man pages for CLI tools. This also updates the tool install directory to use GnuInstallDirs- compatible location Signed-off-by: GitHub <noreply@github.com>
* Move official includes to rabbitmq-c/ directoryAlan Antonuk2021-04-052-4/+4
| | | | | | | | | | | | | | | 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>
* Use cmake TIMESTAMP functionBernhard M. Wiedemann2020-12-221-1/+2
| | | | | | | | | | to allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. Also use UTC to be independent of timezone.
* tool: fix issue parsing hostname in --server flagAlan Antonuk2020-08-091-0/+1
| | | | | | | | Set both the host and port when a ':' isn't found in in the --server flag. The attempted fix in #622 was not complete as the host was not properly set. Fixes #621
* tool: set port when not specified in --server flagAlan Antonuk2020-08-061-0/+7
| | | | | | | Set the port to 5672 and 5671 in SSL mode in the tools when the --server flag is used, but does not specify a port. Fixes: #621
* Install manpages into DATAROOTDIRAlexander Kapshuna2018-10-191-1/+1
|
* Format code with clang-formatAlan Antonuk2017-12-0510-390/+245
|
* Remove vim mode lines.formatAlan Antonuk2017-12-0414-14/+0
| | | | They're hard to keep in sync with .clang-format or other tools.
* tools-doc: correct typo in librabbitmq-tools.xmlAlan Antonuk2017-10-191-1/+1
| | | Fixes #451
* Add ability to specify headers on the command line for amqp-publishAndrew Gough2016-09-112-0/+48
|
* Tools: fix --url parameter processing issues.tools-flagsAlan Antonuk2016-08-191-23/+20
| | | | | | | | --url parameter should not be specified with the --server --port --username and --password parameters. Correct parameter processing routines to correctly enforce this. Fixes #364
* Squash warnings about static initializers in tools.initializer_warningsAlan Antonuk2015-05-035-24/+24
|
* Add support for heartbeats in tools.tools_heartbeatAlan Antonuk2015-03-061-1/+10
|
* Enable SSL support for tools too.Michael Fladischer2014-10-171-0/+4
| | | | | In tools/common.c `#ifdef WITH_SSL` is used but never defined if SSL support is desired.
* amqp-consume: support consuming N messages at a timeAntonio Terceiro2014-09-032-3/+45
| | | | | | | | | | | | | | | If you have a single consumer C₁ and 10 messages are published, all 10 will be streamed to that one customer. Assume each message takes a few minutes to be handled. If a second consumer C₂ comes up before C₁ is able to process its first message, it will stay idle until new messages are published, while C₁ will still have to process the other 9 messages after finishing with the first one. If both consumers were started with `--messages 1`, C₁ would only fetch a single message, and start handling it; C₂ would start and already receive the second message .
* Honor delivery mode value from command lineMarc Falzon2013-12-301-1/+1
| | | | | | This change fixes a bug where delivery mode value was hardcoded to "persistent" even when --persistent flag wasn't specified on the command line options.
* * tools/CMakeLists.txt: Fix missing POPT_INCLUDE_DIRS variable.Lieven Govaerts2013-09-131-1/+1
|
* Non-exclusive queue declaration in amqp-consume.Marc Falzon2013-08-212-5/+26
| | | | | | | | Declare non-exclusive queue by default, which allows task queue round-robin publishing when binding to a "direct" typed exchange with a routing key matching the publisher's one and the queue name. The "-d" option is replaced with a "-x" option to explicitly declare an exclusive queue if needed.
* Make connection the socket object ownerAlan Antonuk2013-07-031-3/+2
| | | | | | | | 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
* listen to multiple routing keys separated by commasBrian Hammond2013-06-262-7/+58
|
* 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-132-16/+12
| | | | This is an API/ABI break.
* Fix code formatting to match the rest of the libAlan Antonuk2013-04-171-14/+23
|
* Start addressing review commentsMichael Steinert2013-04-091-2/+2
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Set the client key/cert in one API callMichael Steinert2013-04-091-4/+1
| | | | | | | | 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>
* Add API to load SSL keys from a bufferMichael Steinert2013-04-091-2/+5
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add checks for derived socket typeMichael Steinert2013-04-091-1/+1
| | | | | | | | | | | 1. Use a single instance of the vtable for each object. This saves some memory at the expense of an extra pointer dereference per method invocation. 2. Compare the class vtable pointer in sub-class methods to determine if the object type is correct. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Propose new socket APIMichael Steinert2013-04-091-28/+27
| | | | | | | | | 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>
* Fix non-SSL build in the tools directoryMichael Steinert2013-04-091-3/+6
| | | | | | | Also reduce OpenSSL requirement to 1.0.0 (0.9.8 would probably be fine as well). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add amqps:// support to the URL parserMichael Steinert2013-04-091-36/+32
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Implement SSL/TLS over CyaSSL, GnuTLS, OpenSSL & PolarSSL backendsMichael Steinert2013-04-091-15/+32
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add plumbing for SSL/TLS supportMichael Steinert2013-04-091-1/+0
| | | | | | | | | | | | | | | This change abstracts out the networking functions so that the user can provide an SSL/TLS implementation. Callback functions replace `writev()`, `send()`, and `recv()` (there is also a callback for error reporting). The default interface remains unchanged. If the user wants to create a SSL/TLS connection they first negotiate the connection and then use the new function `amqp_set_sockfd_full()` to provide the networking implementation for their SSL/TLS library. The user may provide an optional pointer to data that is passed through to the networking functions. 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-0812-810/+910
|
* Adding vim modelines to help with source formattingAlan Antonuk2013-04-0514-0/+14
|
* Fix for XmlTo not found warning in tools directoryAlan Antonuk2013-01-191-3/+3
| | | | | | | Issue was FindPackageHandleStandardArgs upper-cases the package name so when XmlTo was passed to the FIND_PACKAGE_HANDLE_STANDARD_ARGS function it created the variable XMLTO_FOUND instead of the expected XmlTo_FOUND
* Build without amqp_framing.py codegenAlan Antonuk2013-01-161-1/+1
| | | | | | | | Changes to support building rabbitmq-c without having run the python code generator, or do a git submodule init/update. This is to facilitate creating links to downloadable source archives from github
* CMake: build both static and shared libs in one buildAlan Antonuk2012-11-141-5/+5
|
* Adding CMake procedure to build/install tools manpagesAlan Antonuk2012-05-241-0/+39
|
* Adding the amqp-* tools to install targetAlan Antonuk2012-05-241-0/+5
|
* Adding more strict compile Warning flags to gcc buildAlan Antonuk2012-05-241-1/+4
| | | | | | | | 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-175-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-176-9/+10
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>