summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add config.h header guardsMichael Steinert2012-05-179-0/+24
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Convert to non-recursive AutomakeMichael Steinert2012-05-177-73/+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>
* Automated relicensing of source files MPL/GPL -> MITMarek Majkowski2012-04-1213-350/+272
|
* Update copyright 2012Emile Joubert2012-02-0213-13/+13
|
* Add an option to limit how many messages are consumedDavid Wragg2011-11-092-3/+24
|
* Adding missing include in tools CMakeLists.txtAlan Antonuk2011-11-011-1/+1
|
* Adding POPT CMake lib finder.Alan Antonuk2011-11-011-6/+6
| | | | | Utilities in the tools/ directory will now be built if the popt library is found
* Adding CMake files to build tools, but not enabledAlan Antonuk2011-10-301-0/+34
| | | | | Did not enable because it requires popt and cmake needs to know how to the popt headers and library
* Add amqp URL support to the toolsbug24440David Wragg2011-09-211-28/+119
|
* die_errno should use the err parameter, not errnoDavid Wragg2011-07-051-1/+1
|
* Remove trailing whitespaceDavid Wragg2011-07-0511-43/+43
|
* Update copyright noticesDavid Wragg2011-03-0113-247/+91
| | | | 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.
* Comment typo fixesDavid Wragg2010-11-241-3/+4
|
* Fix a bug in the asprintf implementationDavid Wragg2010-10-281-3/+6
| | | | *strp[len] does not mean (*strp)[len]
* Construct the command line to conform to Windows escaping conventionsDavid Wragg2010-10-271-8/+28
| | | | | | Those conventions are crazier than I thought. I leaned about this from <http://blogs.msdn.com/b/oldnewthing/archive/2010/09/17/10063629.aspx>.
* Fix compiler warningsDavid Wragg2010-10-211-4/+3
|
* Eliminate the AMQP_EMPTY_* macros from amqp.hDavid Wragg2010-10-213-6/+6
| | | | Hooray, amqp.h is now ISO C90 clean.
* Merge bug22951 into default (Make the C client on default use 0-9-1)David Wragg2010-09-031-1/+1
|\
| * merge default into bug22951Alexandru Scvortov2010-08-173-82/+68
| |\