litestomp
stomp_io.h
Go to the documentation of this file.
1 
21 #ifndef STOMP_IO_H
22 #define STOMP_IO_H
23 
24 #if defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
25 #include <apr-1.0/apr_general.h>
26 #include <apr-1.0/apr_network_io.h>
27 #include <apr-1.0/apr_hash.h>
28 #include <apr-1.0/apr_env.h>
29 #include <apr-1.0/apr_strings.h>
30 #include <apr-1.0/apr_support.h>
31 #else
32 #include <apr-1/apr_general.h>
33 #include <apr-1/apr_network_io.h>
34 #include <apr-1/apr_hash.h>
35 #include <apr-1/apr_env.h>
36 #include <apr-1/apr_strings.h>
37 #include <apr-1/apr_support.h>
38 #endif // defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
39 
40 
41 
42 #include <stdio.h>
43 #include <stdbool.h>
44 
45 #include "stomp_connection.h"
46 #include "stomp_frame.h"
47 #include "stomp_status.h"
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
56 typedef struct data_block_list {
57  char data[1024];
60 
68 APR_DECLARE(apr_status_t) stomp_write(stomp_connection *connection, stomp_frame *frame, apr_pool_t *pool);
69 
77 APR_DECLARE(apr_status_t) stomp_read(stomp_connection *connection, stomp_frame **frame, apr_pool_t *pool);
78 
85 bool stomp_io_can_read(stomp_connection *connection);
86 
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* STOMP_IO_H */
98 
Definition: stomp_connection.h:48
Definition: stomp_io.h:56
Definition: stomp_status.h:39
Definition: stomp_frame.h:41
APR_DECLARE(apr_status_t) stomp_write(stomp_connection *connection
char data[1024]
Definition: stomp_io.h:57
stomp_frame * frame
Definition: stomp_io.h:68
struct data_block_list * next
Definition: stomp_io.h:58
stomp_frame apr_pool_t * pool
Definition: stomp_io.h:68
bool stomp_io_can_read(stomp_connection *connection)
Definition: stomp_io.c:522
stomp_status_t stomp_io_last_status()
Definition: stomp_io.c:38
struct data_block_list data_block_list