44 #define AMQP_BEGIN_DECLS extern "C" {
45 #define AMQP_END_DECLS }
47 #define AMQP_BEGIN_DECLS
48 #define AMQP_END_DECLS
61 #if defined(_WIN32) && defined(_MSC_VER)
62 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
63 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
64 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport) extern
66 # define AMQP_PUBLIC_FUNCTION
67 # if !defined(AMQP_STATIC)
68 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
70 # define AMQP_PUBLIC_VARIABLE extern
73 # define AMQP_CALL __cdecl
75 #elif defined(_WIN32) && defined(__BORLANDC__)
76 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
77 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
78 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport) extern
80 # define AMQP_PUBLIC_FUNCTION
81 # if !defined(AMQP_STATIC)
82 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
84 # define AMQP_PUBLIC_VARIABLE extern
87 # define AMQP_CALL __cdecl
89 #elif defined(_WIN32) && defined(__MINGW32__)
90 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
91 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
92 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport) extern
94 # define AMQP_PUBLIC_FUNCTION
95 # if !defined(AMQP_STATIC)
96 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
98 # define AMQP_PUBLIC_VARIABLE extern
101 # define AMQP_CALL __cdecl
103 #elif defined(_WIN32) && defined(__CYGWIN__)
104 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
105 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
106 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport)
108 # define AMQP_PUBLIC_FUNCTION
109 # if !defined(AMQP_STATIC)
110 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
112 # define AMQP_PUBLIC_VARIABLE extern
115 # define AMQP_CALL __cdecl
117 #elif defined(__GNUC__) && __GNUC__ >= 4
118 # include <sys/uio.h>
119 # define AMQP_PUBLIC_FUNCTION \
120 __attribute__ ((visibility ("default")))
121 # define AMQP_PUBLIC_VARIABLE \
122 __attribute__ ((visibility ("default"))) extern
125 # define AMQP_PUBLIC_FUNCTION
126 # define AMQP_PUBLIC_VARIABLE extern
130 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
131 # define AMQP_DEPRECATED(function) \
132 function __attribute__ ((__deprecated__))
133 #elif defined(_MSC_VER)
134 # define AMQP_DEPRECATED(function) \
135 __declspec(deprecated) function
137 # define AMQP_DEPRECATED(function)
144 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
153 typedef __int64 ssize_t;
155 typedef _W64
int ssize_t;
224 #define AMQP_VERSION_MAJOR 0
225 #define AMQP_VERSION_MINOR 5
226 #define AMQP_VERSION_PATCH 0
227 #define AMQP_VERSION_IS_RELEASE 1
248 #define AMQP_VERSION ((AMQP_VERSION_MAJOR << 24) | \
249 (AMQP_VERSION_MINOR << 16) | \
250 (AMQP_VERSION_PATCH << 8) | \
251 (AMQP_VERSION_IS_RELEASE))
254 #define AMQ_STRINGIFY(s) AMQ_STRINGIFY_HELPER(s)
255 #define AMQ_STRINGIFY_HELPER(s) #s
257 #define AMQ_VERSION_STRING AMQ_STRINGIFY(AMQP_VERSION_MAJOR) "." \
258 AMQ_STRINGIFY(AMQP_VERSION_MINOR) "." \
259 AMQ_STRINGIFY(AMQP_VERSION_PATCH)
274 #if AMQP_VERSION_IS_RELEASE
275 # define AMQP_VERSION_STRING AMQ_VERSION_STRING
277 # define AMQP_VERSION_STRING AMQ_VERSION_STRING "-pre"
320 #define AMQP_DEFAULT_FRAME_SIZE 131072
331 #define AMQP_DEFAULT_MAX_CHANNELS 0
342 #define AMQP_DEFAULT_HEARTBEAT 0
377 typedef struct amqp_bytes_t_ {
387 typedef struct amqp_decimal_t_ {
404 typedef struct amqp_table_t_ {
416 typedef struct amqp_array_t_ {
465 typedef struct amqp_field_value_t_ {
493 typedef struct amqp_table_entry_t_ {
530 typedef struct amqp_pool_blocklist_t_ {
540 typedef struct amqp_pool_t_ {
560 typedef struct amqp_method_t_ {
571 typedef struct amqp_frame_t_ {
589 uint8_t transport_high;
590 uint8_t transport_low;
591 uint8_t protocol_version_major;
592 uint8_t protocol_version_minor;
603 typedef enum amqp_response_type_enum_ {
615 typedef struct amqp_rpc_reply_t_ {
635 typedef enum amqp_sasl_method_enum_ {
658 typedef enum amqp_status_enum_
731 #include <amqp_framing.h>
768 #define AMQP_EMPTY_BYTES amqp_empty_bytes
779 #define AMQP_EMPTY_TABLE amqp_empty_table
790 #define AMQP_EMPTY_ARRAY amqp_empty_array
1008 AMQP_PUBLIC_FUNCTION
1031 AMQP_PUBLIC_FUNCTION
1069 AMQP_PUBLIC_FUNCTION
1087 AMQP_PUBLIC_FUNCTION
1108 AMQP_PUBLIC_FUNCTION
1153 AMQP_PUBLIC_FUNCTION
1176 AMQP_PUBLIC_FUNCTION
1204 AMQP_PUBLIC_FUNCTION
1225 AMQP_PUBLIC_FUNCTION
1249 AMQP_PUBLIC_FUNCTION
1275 AMQP_PUBLIC_FUNCTION
1290 AMQP_PUBLIC_FUNCTION
1321 AMQP_PUBLIC_FUNCTION
1346 AMQP_PUBLIC_FUNCTION
1366 AMQP_PUBLIC_FUNCTION
1421 AMQP_PUBLIC_FUNCTION
1487 AMQP_PUBLIC_FUNCTION
1491 struct timeval *tv);
1533 AMQP_PUBLIC_FUNCTION
1566 AMQP_PUBLIC_FUNCTION
1605 AMQP_PUBLIC_FUNCTION
1611 void *decoded_request_method);
1627 AMQP_PUBLIC_FUNCTION
1633 void *decoded_request_method);
1674 AMQP_PUBLIC_FUNCTION
1728 AMQP_PUBLIC_FUNCTION
1731 int channel_max,
int frame_max,
int heartbeat,
1786 AMQP_PUBLIC_FUNCTION
1789 int channel_max,
int frame_max,
int heartbeat,
1792 struct amqp_basic_properties_t_;
1840 AMQP_PUBLIC_FUNCTION
1845 struct amqp_basic_properties_t_
const *properties,
1858 AMQP_PUBLIC_FUNCTION
1876 AMQP_PUBLIC_FUNCTION
1895 AMQP_PUBLIC_FUNCTION
1916 AMQP_PUBLIC_FUNCTION
1936 AMQP_PUBLIC_FUNCTION
1960 AMQP_PUBLIC_FUNCTION
1977 AMQP_PUBLIC_FUNCTION
1997 AMQP_PUBLIC_FUNCTION
2014 AMQP_PUBLIC_FUNCTION
2039 AMQP_PUBLIC_FUNCTION
2063 AMQP_PUBLIC_FUNCTION
2086 AMQP_PUBLIC_FUNCTION
2095 typedef struct amqp_message_t_ {
2119 AMQP_PUBLIC_FUNCTION
2132 AMQP_PUBLIC_FUNCTION
2141 typedef struct amqp_envelope_t_ {
2181 AMQP_PUBLIC_FUNCTION
2185 struct timeval *timeout,
int flags);
2194 AMQP_PUBLIC_FUNCTION
2227 AMQP_PUBLIC_FUNCTION
2253 AMQP_PUBLIC_FUNCTION
2275 AMQP_PUBLIC_FUNCTION
2297 AMQP_PUBLIC_FUNCTION
2317 AMQP_PUBLIC_FUNCTION
2330 AMQP_PUBLIC_FUNCTION
2344 AMQP_PUBLIC_FUNCTION
amqp_rpc_reply_t amqp_login(amqp_connection_state_t state, char const *vhost, int channel_max, int frame_max, int heartbeat, amqp_sasl_method_enum sasl_method,...)
Login to the broker.
amqp_bytes_t amqp_bytes_malloc_dup(amqp_bytes_t src)
Duplicates an amqp_bytes_t buffer.
amqp_response_type_enum reply_type
the reply type:
Definition: amqp.h:616
Unexpected protocol state.
Definition: amqp.h:698
the library got an EOF from the socket
Definition: amqp.h:604
int port
the port that the broker is listening on, default on most brokers is 5672
Definition: amqp.h:2209
uint16_t amqp_channel_t
Channel type.
Definition: amqp.h:370
uint64_t body_size
size of the body in bytes
Definition: amqp.h:582
unformatted byte string, datatype: amqp_bytes_t
Definition: amqp.h:522
void empty_amqp_pool(amqp_pool_t *pool)
Empties an amqp memory pool.
void amqp_pool_alloc_bytes(amqp_pool_t *pool, size_t amount, amqp_bytes_t *output)
Allocates a block of memory from an amqp_pool_t to an amqp_bytes_t.
amqp_method_t method
a method, use if frame_type == AMQP_FRAME_METHOD
Definition: amqp.h:579
uint32_t value
the value before the decimal point is applied
Definition: amqp.h:389
char * password
the password to authenticate with the broker, default on most brokers is 'guest'
Definition: amqp.h:2206
AMQP field table.
Definition: amqp.h:404
void * amqp_simple_rpc_decoded(amqp_connection_state_t state, amqp_channel_t channel, amqp_method_number_t request_id, amqp_method_number_t reply_id, void *decoded_request_method)
Sends a method to the broker and waits for a method response.
A socket error occurred.
Definition: amqp.h:682
SSL handshake failed.
Definition: amqp.h:715
32-bit signed integer, datatype: int32_t
Definition: amqp.h:510
amqp_boolean_t amqp_frames_enqueued(amqp_connection_state_t state)
Checks to see if there are any incoming frames ready to be read.
amqp_boolean_t amqp_release_buffers_ok(amqp_connection_state_t state)
Check to see if connection memory can be released.
amqp_bytes_t exchange
exchange this message was published to
Definition: amqp.h:2146
The underlying system timer facility failed.
Definition: amqp.h:694
amqp_rpc_reply_t amqp_consume_message(amqp_connection_state_t state, amqp_envelope_t *envelope, struct timeval *timeout, int flags)
Wait for and consume a message.
int amqp_send_method(amqp_connection_state_t state, amqp_channel_t channel, amqp_method_number_t id, void *decoded)
Sends a method to the broker.
server exception, the broker returned an error, check replay
Definition: amqp.h:607
Timed out waiting for heartbeat.
Definition: amqp.h:696
uint64_t delivery_tag
the messages delivery tag
Definition: amqp.h:2144
uint16_t class_id
the class for the properties
Definition: amqp.h:581
amqp_status_enum
Status codes.
Definition: amqp.h:658
uint32_t amqp_flags_t
Bitmask for flags.
Definition: amqp.h:363
int8_t i8
int8_t type AMQP_FIELD_KIND_I8
Definition: amqp.h:469
struct amqp_field_value_t_ * entries
linked list of field values
Definition: amqp.h:418
char const * amqp_version(void)
Returns the rabbitmq-c version as a string.
field array (repeated values of another datatype.
Definition: amqp.h:518
amqp_bytes_t body
message body
Definition: amqp.h:2097
amqp_table_t * amqp_get_server_properties(amqp_connection_state_t state)
Get the broker properties table.
An AMQP frame.
Definition: amqp.h:571
amqp_rpc_reply_t amqp_login_with_properties(amqp_connection_state_t state, char const *vhost, int channel_max, int frame_max, int heartbeat, const amqp_table_t *properties, amqp_sasl_method_enum sasl_method,...)
Login to the broker passing a properties table.
int amqp_basic_ack(amqp_connection_state_t state, amqp_channel_t channel, uint64_t delivery_tag, amqp_boolean_t multiple)
Acknowledges a message.
int amqp_get_channel_max(amqp_connection_state_t state)
Get the maximum number of channels the connection can handle.
char * user
the username to authenticate with the broker, default on most broker is 'guest'
Definition: amqp.h:2205
amqp_method_t reply
in case of AMQP_RESPONSE_SERVER_EXCEPTION this field will be set to the method returned from the brok...
Definition: amqp.h:623
char * vhost
the virtual host on the broker to connect to, a good default is "/"
Definition: amqp.h:2208
amqp_bytes_t key
the table entry key.
Definition: amqp.h:494
int amqp_tune_connection(amqp_connection_state_t state, int channel_max, int frame_max, int heartbeat)
Tune client side parameters.
int amqp_send_header(amqp_connection_state_t state)
Send initial AMQP header to the broker.
void amqp_release_buffers(amqp_connection_state_t state)
Release amqp_connection_state_t owned memory.
int amqp_socket_open(amqp_socket_t *self, const char *host, int port)
Open a socket connection.
amqp_socket_t * amqp_get_socket(amqp_connection_state_t state)
Get the socket object associated with a amqp_connection_state_t.
An unknown AMQP method was received.
Definition: amqp.h:670
amqp_bytes_t amqp_cstring_bytes(char const *cstr)
Wraps a c string in an amqp_bytes_t.
SSL validation of hostname against peer certificate failed.
Definition: amqp.h:709
int amqp_handle_input(amqp_connection_state_t state, amqp_bytes_t received_data, amqp_frame_t *decoded_frame)
Process incoming data.
size_t len
length of the buffer in bytes
Definition: amqp.h:378
int16_t i16
int16_t type AMQP_FIELD_KIND_I16
Definition: amqp.h:471
double f64
double type AMQP_FIELD_KIND_F64
Definition: amqp.h:478
8-bit signed integer, datatype: int8_t
Definition: amqp.h:506
amqp_delivery_mode_enum
AMQP delivery modes.
Definition: amqp.h:724
amqp_boolean_t amqp_data_in_buffer(amqp_connection_state_t state)
Check to see if there is data left in the receive buffer.
amqp_boolean_t redelivered
flag indicating whether this message is being redelivered
Definition: amqp.h:2145
amqp_field_value_kind_t
Field value types.
Definition: amqp.h:504
An amqp method.
Definition: amqp.h:560
64-bit unsigned integer, datatype: uint64_t
Definition: amqp.h:513
amqp_rpc_reply_t amqp_read_message(amqp_connection_state_t state, amqp_channel_t channel, amqp_message_t *message, int flags)
Reads the next message on a channel.
SSL validation of peer certificate failed.
Definition: amqp.h:713
Incorrect or corrupt data was received from the broker.
Definition: amqp.h:663
Operation timed out.
Definition: amqp.h:693
A list of allocation blocks.
Definition: amqp.h:530
UTF-8 null-terminated character string, datatype: amqp_bytes_t.
Definition: amqp.h:517
int library_error
in case of AMQP_RESPONSE_LIBRARY_EXCEPTION this field will be set to an error code.
Definition: amqp.h:625
int32_t i32
int32_t type AMQP_FIELD_KIND_I32
Definition: amqp.h:473
int amqp_simple_wait_method(amqp_connection_state_t state, amqp_channel_t expected_channel, amqp_method_number_t expected_method, amqp_method_t *output)
Waits for a specific method from the broker.
void * bytes
pointer to the beginning of the buffer
Definition: amqp.h:379
amqp_pool_blocklist_t pages
blocks that are the size of pagesize
Definition: amqp.h:547
int amqp_send_frame(amqp_connection_state_t state, amqp_frame_t const *frame)
Send a frame to the broker.
amqp_bytes_t consumer_tag
the consumer tag the message was delivered to
Definition: amqp.h:2143
size_t alloc_used
number of bytes in the current allocation block that has been used
Definition: amqp.h:552
An error occurred trying to initialize the socket library.
Definition: amqp.h:703
int amqp_open_socket(char const *hostname, int portnumber)
Open a socket to a remote host.
Unable to resolve the hostname.
Definition: amqp.h:673
void amqp_destroy_envelope(amqp_envelope_t *envelope)
Frees memory associated with a amqp_envelope_t allocated in amqp_consume_message() ...
A message object.
Definition: amqp.h:2095
Envelope object.
Definition: amqp.h:2141
amqp_field_value_t value
the table entry values
Definition: amqp.h:496
uint32_t amqp_method_number_t
Method number.
Definition: amqp.h:356
const amqp_array_t amqp_empty_array
Empty table array structure.
Definition: amqp.h:754
amqp_response_type_enum
Response type.
Definition: amqp.h:603
int amqp_table_entry_cmp(void const *entry1, void const *entry2)
Compare two table entries.
32-bit unsigned integer, datatype: uint32_t
Definition: amqp.h:511
int amqp_socket_get_sockfd(amqp_socket_t *self)
Get the socket descriptor in use by a socket object.
amqp_channel_t channel
channel message was delivered on
Definition: amqp.h:2142
int amqp_boolean_t
boolean type 0 = false, true otherwise
Definition: amqp.h:349
The amqp_table_t object cannot be serialized because the output buffer is too small.
Definition: amqp.h:687
int amqp_table_clone(amqp_table_t *original, amqp_table_t *clone, amqp_pool_t *pool)
Create a deep-copy of an amqp_table_t object.
The wrong method was received.
Definition: amqp.h:691
amqp_decimal_t decimal
amqp_decimal_t AMQP_FIELD_KIND_DECIMAL
Definition: amqp.h:479
boolean type.
Definition: amqp.h:505
Persistent message.
Definition: amqp.h:726
empty entry
Definition: amqp.h:521
void amqp_set_sockfd(amqp_connection_state_t state, int sockfd)
Deprecated, use amqp_tcp_socket_new() or amqp_ssl_socket_new()
void amqp_default_connection_info(struct amqp_connection_info *parsed)
Initialze an amqp_connection_info to default values.
const amqp_bytes_t amqp_empty_bytes
Empty bytes structure.
Definition: amqp.h:740
int amqp_basic_reject(amqp_connection_state_t state, amqp_channel_t channel, uint64_t delivery_tag, amqp_boolean_t requeue)
Do a basic.reject.
Parameters used to connect to the RabbitMQ broker.
Definition: amqp.h:2204
amqp_rpc_reply_t amqp_channel_close(amqp_connection_state_t state, amqp_channel_t channel, int code)
Closes an channel.
The connection to the broker has been closed.
Definition: amqp.h:678
amqp_table_t table
amqp_table_t type AMQP_FIELD_KIND_TABLE
Definition: amqp.h:481
library error, an error occurred in the library, examine the library_error
Definition: amqp.h:606
int amqp_simple_wait_frame_noblock(amqp_connection_state_t state, amqp_frame_t *decoded_frame, struct timeval *tv)
Read a single amqp_frame_t with a timeout.
A generic TCP error occurred.
Definition: amqp.h:701
amqp_bytes_t body_fragment
a body fragment, use if frame_type == AMQP_FRAME_BODY
Definition: amqp.h:587
amqp_rpc_reply_t amqp_simple_rpc(amqp_connection_state_t state, amqp_channel_t channel, amqp_method_number_t request_id, amqp_method_number_t *expected_reply_ids, void *decoded_request_method)
Sends a method to the broker and waits for a method response.
An unknown AMQP class was received.
Definition: amqp.h:667
amqp_rpc_reply_t amqp_basic_get(amqp_connection_state_t state, amqp_channel_t channel, amqp_bytes_t queue, amqp_boolean_t no_ack)
Do a basic.get.
amqp_method_number_t id
the method id number
Definition: amqp.h:561
int amqp_socket_open_noblock(amqp_socket_t *self, const char *host, int port, struct timeval *timeout)
Open a socket connection.
int amqp_simple_wait_frame(amqp_connection_state_t state, amqp_frame_t *decoded_frame)
Read a single amqp_frame_t.
amqp_bytes_t amqp_bytes_malloc(size_t amount)
Allocates a amqp_bytes_t buffer.
amqp_message_t message
the message
Definition: amqp.h:2148
amqp_rpc_reply_t amqp_get_rpc_reply(amqp_connection_state_t state)
Get the last global amqp_rpc_reply.
Abstract base class for amqp_socket_t.
Definition: amqp_socket.h:66
Decimal data type.
Definition: amqp.h:387
int next_page
an index to the next unused page block
Definition: amqp.h:550
int amqp_encode_table(amqp_bytes_t encoded, amqp_table_t *input, size_t *offset)
Serializes an amqp_table_t to the AMQP wireformat.
int num_entries
Number of entries in the table.
Definition: amqp.h:417
the PLAIN SASL method for authentication to the broker
Definition: amqp.h:636
uint32_t amqp_version_number(void)
Returns the rabbitmq-c version as a packed integer.
amqp_channel_t channel
the channel the frame was received on
Definition: amqp.h:577
uint8_t decimals
the location of the decimal point
Definition: amqp.h:388
Operation successful.
Definition: amqp.h:660
amqp_pool_t pool
pool used to allocate properties
Definition: amqp.h:2098
uint16_t u16
uint16_t type AMQP_FIELD_KIND_U16
Definition: amqp.h:472
An AMQP Field Array.
Definition: amqp.h:416
single-precision floating point value, datatype: float
Definition: amqp.h:514
amqp-decimal value, datatype: amqp_decimal_t
Definition: amqp.h:516
const amqp_table_t amqp_empty_table
Empty table structure.
Definition: amqp.h:747
The broker advertised an incompaible AMQP version.
Definition: amqp.h:675
int amqp_destroy_connection(amqp_connection_state_t state)
Destroys an amqp_connection_state_t object.
16-bit signed integer, datatype: int16_t
Definition: amqp.h:508
uint32_t u32
uint32_t type AMQP_FIELD_KIND_U32
Definition: amqp.h:474
A generic SSL error occurred.
Definition: amqp.h:707
char * host
the hostname of the broker
Definition: amqp.h:2207
uint8_t u8
uint8_t type AMQP_FIELD_KIND_U8
Definition: amqp.h:470
int amqp_parse_url(char *url, struct amqp_connection_info *parsed)
Parse a connection URL.
uint8_t kind
the type of the entry /sa amqp_field_value_kind_t
Definition: amqp.h:466
8-bit unsigned integer, datatype: uint8_t
Definition: amqp.h:507
A field table value.
Definition: amqp.h:465
amqp_pool_blocklist_t large_blocks
allocations larger than the pagesize
Definition: amqp.h:548
int amqp_basic_publish(amqp_connection_state_t state, amqp_channel_t channel, amqp_bytes_t exchange, amqp_bytes_t routing_key, amqp_boolean_t mandatory, amqp_boolean_t immediate, struct amqp_basic_properties_t_ const *properties, amqp_bytes_t body)
Publish a message to the broker.
Memory allocation failed.
Definition: amqp.h:661
An invalid parameter was passed into the function.
Definition: amqp.h:684
float f32
float type AMQP_FIELD_KIND_F32
Definition: amqp.h:477
field table.
Definition: amqp.h:520
Non-persistent message.
Definition: amqp.h:725
void init_amqp_pool(amqp_pool_t *pool, size_t pagesize)
Initializes an amqp_pool_t memory allocation pool for use.
int64_t i64
int64_t type AMQP_FIELD_KIND_I64
Definition: amqp.h:475
int amqp_decode_table(amqp_bytes_t encoded, amqp_pool_t *pool, amqp_table_t *output, size_t *offset)
Deserialize an amqp_table_t from AMQP wireformat.
void * decoded
the decoded properties
Definition: amqp.h:583
size_t pagesize
the size of the page in bytes.
Definition: amqp.h:541
An entry in a field-table.
Definition: amqp.h:493
char * alloc_block
pointer to the current allocation block
Definition: amqp.h:551
double-precision floating point value, datatype: double
Definition: amqp.h:515
Definition: amqp_framing.h:586
response normal, the RPC completed successfully
Definition: amqp.h:605
void ** blocklist
Array of memory blocks.
Definition: amqp.h:532
amqp_sasl_method_enum
SASL method type.
Definition: amqp.h:635
void * decoded
pointer to the decoded method, cast to the appropriate type to use
Definition: amqp.h:562
struct amqp_table_entry_t_ * entries
an array of table entries
Definition: amqp.h:406
amqp_bytes_t raw
amqp-encoded properties structure
Definition: amqp.h:584
Buffer descriptor.
Definition: amqp.h:377
int num_blocks
Number of blocks in the block list.
Definition: amqp.h:531
A memory pool.
Definition: amqp.h:540
amqp_connection_state_t amqp_new_connection(void)
Allocate and initialize a new amqp_connection_state_t object.
int amqp_basic_nack(amqp_connection_state_t state, amqp_channel_t channel, uint64_t delivery_tag, amqp_boolean_t multiple, amqp_boolean_t requeue)
Do a basic.nack.
void amqp_bytes_free(amqp_bytes_t bytes)
Frees an amqp_bytes_t buffer.
void amqp_destroy_message(amqp_message_t *message)
Frees memory associated with a amqp_message_t allocated in amqp_read_message.
uint64_t u64
uint64_t type AMQP_FIELD_KIND_U64, AMQP_FIELD_KIND_TIMESTAMP
Definition: amqp.h:476
amqp_boolean_t boolean
boolean type AMQP_FIELD_KIND_BOOLEAN
Definition: amqp.h:468
uint8_t frame_type
frame type.
Definition: amqp.h:572
64-bit timestamp.
Definition: amqp.h:519
char * amqp_error_string(int err)
Get the error string for the given error code.
amqp_basic_properties_t properties
message properties
Definition: amqp.h:2096
void recycle_amqp_pool(amqp_pool_t *pool)
Recycles an amqp_pool_t memory allocation pool.
amqp_rpc_reply_t amqp_connection_close(amqp_connection_state_t state, int code)
Closes the entire connection.
Reply from a RPC method on the broker.
Definition: amqp.h:615
amqp_bytes_t bytes
amqp_bytes_t type AMQP_FIELD_KIND_UTF8, AMQP_FIELD_KIND_BYTES
Definition: amqp.h:480
void amqp_maybe_release_buffers_on_channel(amqp_connection_state_t state, amqp_channel_t channel)
Release amqp_connection_state_t owned memory related to a channel.
16-bit unsigned integer, datatype: uint16_t
Definition: amqp.h:509
amqp_array_t array
amqp_array_t type AMQP_FIELD_KIND_ARRAY
Definition: amqp.h:482
void amqp_maybe_release_buffers(amqp_connection_state_t state)
Release amqp_connection_state_t owned memory.
const char * amqp_error_string2(int err)
Get the error string for the given error code.
int amqp_get_sockfd(amqp_connection_state_t state)
Get the underlying socket descriptor for the connection.
void * amqp_pool_alloc(amqp_pool_t *pool, size_t amount)
Allocates a block of memory from an amqp_pool_t memory pool.
int num_entries
length of entries array
Definition: amqp.h:405
64-bit signed integer, datatype: int64_t
Definition: amqp.h:512
malformed AMQP URL
Definition: amqp.h:681
struct amqp_connection_state_t_ * amqp_connection_state_t
connection state object
Definition: amqp.h:644
amqp_bytes_t routing_key
the routing key this message was published with
Definition: amqp.h:2147