Helium
conn_internal.h
Go to the documentation of this file.
1 
26 #ifndef CONN_INTERNAL_H
27 #define CONN_INTERNAL_H
28 
29 #include "he_internal.h"
30 
31 he_return_code_t he_internal_conn_configure(he_conn_t *conn, he_ssl_ctx_t *ctx);
32 
33 void he_internal_change_conn_state(he_conn_t *conn, he_conn_state_t state);
34 
42 he_return_code_t he_internal_send_message(he_conn_t *conn, uint8_t *message, uint16_t length);
43 he_return_code_t he_internal_send_goodbye(he_conn_t *conn);
44 he_return_code_t he_internal_send_auth(he_conn_t *conn);
45 
46 bool he_internal_is_valid_state_for_server_config(he_conn_t *conn);
47 
48 he_return_code_t he_internal_renegotiate_ssl(he_conn_t *conn);
49 
55 
56 void he_internal_generate_event(he_conn_t *conn, he_conn_event_t event);
57 
58 size_t he_internal_calculate_data_packet_length(he_conn_t *conn, size_t length);
59 
67 he_return_code_t he_internal_generate_session_id(he_conn_t *conn, uint64_t *session_id_out);
68 
69 #endif // CONN_INTERNAL_H
he_internal_update_timeout
void he_internal_update_timeout(he_conn_t *conn)
Updates the timeout for a connection and triggers the timeout callback if set.
Definition: conn.c:758
he_internal.h
Core internal header file for libhelium.
he_conn_state_t
enum he_conn_state he_conn_state_t
Status codes for a Helium connection.
he_return_code_t
enum he_return_code he_return_code_t
All possible return codes for helium.
he_internal_send_message
he_return_code_t he_internal_send_message(he_conn_t *conn, uint8_t *message, uint16_t length)
Sends a message over the secured tunnel.
Definition: conn.c:449
he_ssl_ctx
Definition: he_internal.h:92
he_internal_generate_session_id
he_return_code_t he_internal_generate_session_id(he_conn_t *conn, uint64_t *session_id_out)
Generate a random session ID.
Definition: conn.c:868
he_conn
Definition: he_internal.h:170