litestomp
stomp_connection.h
Go to the documentation of this file.
1 
23 #ifndef STOMP_CONNECTION_H
24 #define STOMP_CONNECTION_H
25 
26 #if defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
27 #include <apr-1.0/apr_general.h>
28 #include <apr-1.0/apr_network_io.h>
29 #include <apr-1.0/apr_hash.h>
30 #else
31 #include <apr-1/apr_general.h>
32 #include <apr-1/apr_network_io.h>
33 #include <apr-1/apr_hash.h>
34 #endif // defined(__DEBIAN_DISTRO__) || defined(__UBUNTU_DISTRO__)
35 
36 
37 #include "stomp_frame.h"
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
48 typedef struct stomp_connection
49 {
50  apr_socket_t *socket;
51  apr_sockaddr_t *local_sa;
52  char *local_ip;
53  apr_sockaddr_t *remote_sa;
54  char *remote_ip;
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* STOMP_CONNECTION_H */
62 
Definition: stomp_connection.h:48
apr_sockaddr_t * local_sa
Definition: stomp_connection.h:51
char * local_ip
Definition: stomp_connection.h:52
struct stomp_connection stomp_connection
apr_sockaddr_t * remote_sa
Definition: stomp_connection.h:53
char * remote_ip
Definition: stomp_connection.h:54
apr_socket_t * socket
Definition: stomp_connection.h:50