diff options
Diffstat (limited to 'src/rexmpp_tcp.h')
-rw-r--r-- | src/rexmpp_tcp.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rexmpp_tcp.h b/src/rexmpp_tcp.h index c8cbdea..1e13ca3 100644 --- a/src/rexmpp_tcp.h +++ b/src/rexmpp_tcp.h @@ -19,13 +19,12 @@ #ifndef REXMPP_TCP_H #define REXMPP_TCP_H +#include <sys/time.h> + #define REXMPP_TCP_MAX_CONNECTION_ATTEMPTS 20 #define REXMPP_TCP_IPV6_DELAY_MS 50 #define REXMPP_TCP_CONN_DELAY_MS 250 -typedef enum rexmpp_tcp_conn_resolution_status -rexmpp_tcp_conn_resolution_status_t; - /** @brief Resolution status. */ @@ -40,7 +39,8 @@ enum rexmpp_tcp_conn_resolution_status { REXMPP_CONN_RESOLUTION_FAILURE }; -typedef enum rexmpp_tcp_conn_error rexmpp_tcp_conn_error_t; +typedef enum rexmpp_tcp_conn_resolution_status +rexmpp_tcp_conn_resolution_status_t; /** @brief Connection errors. @@ -59,6 +59,8 @@ enum rexmpp_tcp_conn_error { REXMPP_CONN_ERROR }; +typedef enum rexmpp_tcp_conn_error rexmpp_tcp_conn_error_t; + typedef struct rexmpp_tcp_connection rexmpp_tcp_conn_t; /** @brief A connection establishment structure. */ |