fritzy/SleekXMPP — pull request #182 by jay-instaedu (2012-07-11 00:38:13+00:00)
Title: callbacks for success/failure on stream sending

Currently, when sending any kind of stanza, you submit it to the queue and then never know what happened. It would be nice to be able to get callbacks when the stanza is actually sent over the tcp socket (or if it errors out on send). This patch also gives the ability to send extra data along to the callback so that additional state can be passed along.

Obviously, this doesn't guarantee that the message actually made it to the recipient, but it does let us know if it made it to the wire or not (as far as our program is concerned).