1 | /* |
---|
2 | * ***** BEGIN LICENSE BLOCK ***** |
---|
3 | * Version: MIT |
---|
4 | * |
---|
5 | * Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc. |
---|
6 | * All Rights Reserved. |
---|
7 | * |
---|
8 | * Portions created by Tony Garnock-Jones are Copyright (c) 2009-2010 |
---|
9 | * VMware, Inc. and Tony Garnock-Jones. All Rights Reserved. |
---|
10 | * |
---|
11 | * Permission is hereby granted, free of charge, to any person |
---|
12 | * obtaining a copy of this software and associated documentation |
---|
13 | * files (the "Software"), to deal in the Software without |
---|
14 | * restriction, including without limitation the rights to use, copy, |
---|
15 | * modify, merge, publish, distribute, sublicense, and/or sell copies |
---|
16 | * of the Software, and to permit persons to whom the Software is |
---|
17 | * furnished to do so, subject to the following conditions: |
---|
18 | * |
---|
19 | * The above copyright notice and this permission notice shall be |
---|
20 | * included in all copies or substantial portions of the Software. |
---|
21 | * |
---|
22 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
---|
23 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
---|
24 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
---|
25 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
---|
26 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
---|
27 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
---|
28 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
---|
29 | * SOFTWARE. |
---|
30 | * ***** END LICENSE BLOCK ***** |
---|
31 | */ |
---|
32 | |
---|
33 | #include <stdlib.h> |
---|
34 | #include <stdio.h> |
---|
35 | #include <string.h> |
---|
36 | #include <ctype.h> |
---|
37 | |
---|
38 | #include <stdint.h> |
---|
39 | #include <amqp.h> |
---|
40 | #include <amqp_framing.h> |
---|
41 | |
---|
42 | #include "utils.h" |
---|
43 | |
---|