Commit Graph

150 Commits

Author SHA1 Message Date
Emiel Bruijntjes 3d1c3c4218 Update README.md 2015-04-01 12:32:27 +02:00
Emiel Bruijntjes 9443c4af83 Update README.md
Added links to Copernica to the README file
2015-04-01 12:31:20 +02:00
Martijn Otto 0b7cecfd5a Merge pull request #24 from szreder/master
Fixes and enhancements for CMake build system
2015-03-30 10:35:29 +02:00
Bartosz Szreder 2dba897ed9 Add install target to CMake. 2015-03-29 20:25:12 +02:00
Bartosz Szreder 11bf55b6a2 Fix compilation with CMake. 2015-03-29 15:48:42 +02:00
Emiel Bruijntjes df6b8ae743 in reaction to pull request #21 the "const uint**_t" return values have been changed into "uint**_t" return values 2015-02-17 09:02:51 +01:00
Emiel Bruijntjes 5a1539b18c Merge pull request #20 from keenlogics/develop
Bugfix: ConnectionImpl::reportError for loops runs out of bounds
2015-01-28 11:52:53 +01:00
Sebastian Melinat 09850e792f Bugfix: ConnectionImpl::reportError calls ChannelImpl::reportError of every channel. The channel then removes itselfs from the connection. That caused the for loop to run out of bounds. Fixed by switching to while 2015-01-28 11:47:03 +01:00
Emiel Bruijntjes f23dc72a4f Fixed documentation, removed references to the ChannelHandler - an object that is no longer supported by AMQP-CPP 2015-01-26 14:47:30 +01:00
Emiel Bruijntjes b207ad7d17 Update README.md
Based on a suggestion from issue #16.
2014-12-01 16:34:12 +01:00
Emiel Bruijntjes 2a4896342c Login errors are now explicitly reported via the ConnectionHandler::onError method, see issue #15 2014-11-20 13:01:26 +01:00
Emiel Bruijntjes 236dd02b13 fixed theoretical issue when deferredGet onSize() methods destructs the underlying channel object 2014-09-02 11:18:11 +02:00
Emiel Bruijntjes 9653578d4a The Channel.get().onFinalize() function was called before the Channel.get().onSuccess() method, which is strange. This has been fixed. To fix this, we had to refactor the Deferred* into shared_ptrs 2014-09-02 10:32:55 +02:00
Emiel Bruijntjes 6cc25c4b27 removed operator= from channels and connections 2014-08-29 13:24:24 +02:00
Emiel Bruijntjes aceac8b677 the finalize callback is now called as part of the deferred object destructor, this ensures that the finalize callback will always be called 2014-08-29 13:18:08 +02:00
Emiel Bruijntjes d35dba71a1 disabled copy constructors for channel and connection objects, because the end-user is not supposed to copy them 2014-08-29 13:17:17 +02:00
Emiel Bruijntjes 8759258a3e Channel::get() and Channel::purgeQueue() methods always reported an error, even while there was no error 2014-08-29 13:16:05 +02:00
Emiel Bruijntjes ebcdd71848 Added onSize() method to DeferredGet 2014-08-28 10:02:01 +02:00
Emiel Bruijntjes c7b3f71f14 the connection.close function was only waiting for synchronous calls to complete, async calls that were waiting (after a synchronous) were still discarded, this has been fixed 2014-08-20 13:40:29 +02:00
Emiel Bruijntjes d23e818f64 turns out that shared_from_this() can not be called from the constructor, so we made a special attach() function to postpone object initialization 2014-08-20 12:44:52 +02:00
Michael van der Werve 53b2bd9f0d fixed typo in the connection implementation file 2014-08-20 12:03:15 +02:00
Emiel Bruijntjes 36734671cc channel instructions that were given before the connection was fully initialized were immediately lost, if the connection was immediately closed 2014-08-20 11:59:05 +02:00
Emiel Bruijntjes 6997a70cf1 when a connection was closed, the commands already given to the channels were sometimes by-passed by the closing channel. This has been fixed. Also solved the problem that calls executed on channel objects that fall out of scope were not always completed 2014-08-20 11:47:16 +02:00
Michael van der Werve 170ef1f82a when a channel is destructed during a success-callback, the program crashed, this has been fixed by using shared_ptr 2014-08-19 17:43:12 +02:00
Michael van der Werve 07d9361d84 compile fixes 2014-08-19 15:00:20 +02:00
Michael van der Werve acda90655d login and vhost can now be fetched from the connection class 2014-08-19 14:54:30 +02:00
Emiel Bruijntjes 328820f898 renamed apple.h to endian.h because it turns out that it is also used for linux systems, and removed double implemented ChannelImpl::get() function 2014-08-14 15:25:44 +02:00
Emiel Bruijntjes 3e47191f90 fixed apple incompatibility 2014-08-14 15:19:08 +02:00
Emiel Bruijntjes 271cc39c17 whitespace change 2014-08-13 16:43:59 +02:00
Emiel Bruijntjes 5bc7b4b5b3 added destructor of ReducedBuffer 2014-08-13 15:02:54 +02:00
Emiel Bruijntjes 945a01f659 The Connection::parse() method can now also be called with a buffer object, which allows the user to implement the buffer much more efficiently: it no longer has to be an array 2014-08-13 13:01:27 +02:00
Richard Hodges d2a84b5f8d build - added new source files to CMakeLists 2014-08-07 11:09:02 +01:00
Richard Hodges 4acee206d2 testing - added stub to build a test based on asio 2014-08-07 11:00:06 +01:00
Emiel Bruijntjes a8ff6de550 fixed bug in channel.get() calls 2014-08-07 11:00:06 +01:00
Emiel Bruijntjes 37a51cdc7b basic.get is asynchronous until the entire body has been received, only then subsequent messages are sent + first work in progress on implementing smarter buffers 2014-08-07 11:00:06 +01:00
Emiel Bruijntjes dca76db2f0 empty messages could not be consumed or get, this has now been fixed 2014-08-07 11:00:06 +01:00
Emiel Bruijntjes bcbe50e22c basic.get callbacks only have to be installed for a single message, so we uninstall it right after the message was handled 2014-08-07 11:00:06 +01:00
Emiel Bruijntjes b4270f39bc added Channel::get() that allows one to retrieve a single message from the channel 2014-08-07 11:00:06 +01:00
Emiel Bruijntjes f905c9db49 Quality of service now supports "global" parameter (default is still false) 2014-08-07 11:00:05 +01:00
Emiel Bruijntjes d99b117a60 fixed bug in channel.get() calls 2014-08-04 13:44:17 +02:00
Richard Hodges ba3b8ecf0f build - added dependencies to library target having figured out that's how it should be done :) 2014-08-03 20:22:42 +01:00
Emiel Bruijntjes e299aa5fac basic.get is asynchronous until the entire body has been received, only then subsequent messages are sent + first work in progress on implementing smarter buffers 2014-08-01 11:55:07 +02:00
Emiel Bruijntjes b97222c4db empty messages could not be consumed or get, this has now been fixed 2014-08-01 10:37:18 +02:00
Emiel Bruijntjes 7956d706fb basic.get callbacks only have to be installed for a single message, so we uninstall it right after the message was handled 2014-08-01 10:05:02 +02:00
Emiel Bruijntjes 42514e80db Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/AMQP-CPP 2014-07-31 13:11:30 +02:00
Emiel Bruijntjes f39410039b added Channel::get() that allows one to retrieve a single message from the channel 2014-07-31 12:58:13 +02:00
Martijn Otto f2f241665f Merge branch 'master' of github.com:CopernicaMarketingSoftware/AMQP-CPP 2014-07-31 10:17:15 +02:00
Martijn Otto 98aba8f638 Fix for issue #12 2014-07-31 10:16:55 +02:00
Emiel Bruijntjes cac3247304 Quality of service now supports "global" parameter (default is still false) 2014-07-31 10:10:15 +02:00
Richard Hodges d4b10cbf35 bug - negate the result of send() before using the result in a DeferredResult constructor 2014-07-30 15:29:05 +01:00