rmt/amqptools — pull request #4 by astephens25 (2012-02-27 17:17:36+00:00)
Title: Added stdin reading capability to amqpsend

I added the option to leave out the filename and the command line message and instead read the message body from standard input.

I performed regression testing to make sure the previous options still behaved generally as expected. The primary difference is where the help message was printed if the filename option and command-line message argument were missing.

Additional testing included sending of large files (20M) to test buffer reallocations. I did not do any performance analysis using the read buffer of only 8K.

Feel free to not accept these changes as you see fit. I made them for my own use and wish to give you the option to make them generally available in your project if you deem it desirable to do so.

Thank you.