litestomp
stomp_engine.h
Go to the documentation of this file.
1 
25 #ifndef STOMP_ENGINE_H
26 #define STOMP_ENGINE_H
27 
28 
29 #include <stdlib.h>
30 #include <string.h>
31 #if defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
32  #include <apr-1.0/apr.h>
33  #include <apr-1.0/apr_strings.h>
34  #include <apr-1.0/apr_general.h>
35  #include <apr-1.0/apr_network_io.h>
36  #include <apr-1.0/apr_hash.h>
37 #else
38  #include <apr-1/apr.h>
39  #include <apr-1/apr_strings.h>
40  #include <apr-1/apr_general.h>
41  #include <apr-1/apr_network_io.h>
42  #include <apr-1/apr_hash.h>
43 #endif // defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
44 
45 
46 #include "stomp_connection.h"
47 #include "stomp_frame.h"
48 #include "stomp_io.h"
49 #include "stomp_status.h"
50 
51 #ifdef __cplusplus
52 extern "C"
53 {
54 #endif /* __cplusplus */
55 
56 
65 APR_DECLARE(apr_status_t) stomp_engine_connect(stomp_connection **connection_ref,
66  const char *hostname,
67  int port, apr_pool_t *pool);
68 
69 
76 APR_DECLARE(apr_status_t) stomp_engine_set_timeout(stomp_connection *connection,
77  apr_int64_t timeout);
78 
79 
88 APR_DECLARE(apr_status_t) stomp_engine_disconnect(stomp_connection **connection_ref);
89 
90 
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* ! STOMP_ENGINE_H */
Definition: stomp_connection.h:48
Definition: stomp_status.h:39
apr_int64_t timeout
Definition: stomp_engine.h:77
stomp_status_t stomp_engine_last_status()
Definition: stomp_engine.c:32
const char * hostname
Definition: stomp_engine.h:66
APR_DECLARE(apr_status_t) stomp_engine_connect(stomp_connection **connection_ref
const char int apr_pool_t * pool
Definition: stomp_engine.h:66
const char int port
Definition: stomp_engine.h:66