litestomp
stomp_messenger.h
Go to the documentation of this file.
1 
16 #ifndef STOMP_H_
17 #define STOMP_H_
18 
19 #if defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
20 #include <apr-1.0/apr_general.h>
21 #include <apr-1.0/apr_network_io.h>
22 #include <apr-1.0/apr_hash.h>
23 #include <apr-1.0/apr_uri.h>
24 #else
25 #include <apr-1/apr_general.h>
26 #include <apr-1/apr_network_io.h>
27 #include <apr-1/apr_hash.h>
28 #include <apr-1/apr_uri.h>
29 #endif // defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
30 
31 
32 
33 #include "stomp_status.h"
34 #include "stomp_connection.h"
35 #include "stomp_engine.h"
36 #include "stomp_frame.h"
37 #include "stomp_io.h"
38 #include "stomp_headers.h"
39 #include "stomp_ex_properties.h"
40 #include "stomp_message.h"
41 
42 typedef apr_uri_t stomp_uri_t;
43 
47 typedef struct stomp_messenger_t_ {
49  // TODO: not exactly the ideal place for this (nor the ideal design), but
50  // will remain in this place until I come up with a better solution
53  apr_pool_t *pool;
56 
57 
63 
64 
70 
71 
79  int32_t timeout);
80 
81 
91  const char *uri);
92 
93 
107  int32_t timeout);
108 
109 
122 
123 
124 
137 
138 
151 
152 
164  stomp_ack_header_t *header);
165 
166 
178  stomp_ack_header_t *header);
179 
180 
193 
194 
207 
208 
221 
222 
235  stomp_send_header_t *header,
236  stomp_message_t *message);
237 
238 
252  stomp_receive_header_t *header,
253  stomp_message_t *message);
254 
255 #endif /* STOMP_H_ */
256 
Definition: stomp_connection.h:48
stomp_status_code_t stomp_receive(stomp_messenger_t *messenger, stomp_receive_header_t *header, stomp_message_t *message)
Definition: stomp_messenger.c:560
stomp_status_code_t stomp_unsubscribe(stomp_messenger_t *messenger, stomp_subscription_header_t *header)
Definition: stomp_messenger.c:339
stomp_uri_t uri
Definition: stomp_messenger.h:54
Definition: stomp_status.h:39
apr_int64_t timeout
Definition: stomp_engine.h:77
Definition: stomp_headers.h:89
Definition: stomp_headers.h:137
Definition: stomp_headers.h:113
stomp_status_code_t stomp_abort(stomp_messenger_t *messenger, stomp_transaction_header_t *header)
Definition: stomp_messenger.c:513
Definition: stomp_headers.h:57
stomp_status_code_t stomp_connect(stomp_messenger_t *messenger, stomp_connection_header_t *header, int32_t timeout)
Definition: stomp_messenger.c:130
Definition: stomp_headers.h:68
Definition: stomp_ex_properties.h:49
Definition: stomp_messenger.h:47
stomp_status_code_t stomp_begin(stomp_messenger_t *messenger, stomp_transaction_header_t *header)
Definition: stomp_messenger.c:501
struct stomp_messenger_t_ stomp_messenger_t
stomp_status_code_t stomp_subscribe(stomp_messenger_t *messenger, stomp_subscription_header_t *header)
Definition: stomp_messenger.c:293
stomp_status_code_t stomp_nack(stomp_messenger_t *messenger, stomp_ack_header_t *header)
Definition: stomp_messenger.c:431
stomp_status_code_t stomp_commit(stomp_messenger_t *messenger, stomp_transaction_header_t *header)
Definition: stomp_messenger.c:507
apr_uri_t stomp_uri_t
Definition: stomp_messenger.h:42
void stomp_messenger_destroy(stomp_messenger_t **messenger)
Definition: stomp_messenger.c:72
stomp_status_code_t stomp_ack(stomp_messenger_t *messenger, stomp_ack_header_t *header)
Definition: stomp_messenger.c:399
Definition: stomp_headers.h:101
Definition: stomp_headers.h:124
stomp_messenger_t * stomp_messenger_init()
Definition: stomp_messenger.c:18
stomp_status_t status
Definition: stomp_messenger.h:52
stomp_connection * connection
Definition: stomp_messenger.h:48
stomp_status_code_t stomp_send(stomp_messenger_t *messenger, stomp_send_header_t *header, stomp_message_t *message)
Definition: stomp_messenger.c:519
enum stomp_status_code_t_ stomp_status_code_t
apr_pool_t * pool
Definition: stomp_messenger.h:53
stomp_status_code_t stomp_set_endpoint(stomp_messenger_t *messenger, const char *uri)
Definition: stomp_messenger.c:99
stomp_status_code_t stomp_disconnect(stomp_messenger_t *messenger, stomp_disconnection_header_t *header)
Definition: stomp_messenger.c:261
stomp_exchange_properties_t * exchange_properties
Definition: stomp_messenger.h:51
Definition: stomp_message.h:31
void stomp_messenger_set_timeout(stomp_messenger_t *messenger, int32_t timeout)
Definition: stomp_messenger.c:89