Helium
flow.h
Go to the documentation of this file.
1 /* *
2  * Lightway Core
3  * Copyright (C) 2021 Express VPN International Ltd.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
26 #ifndef FLOW_H
27 #define FLOW_H
28 
29 #include <he.h>
30 
45 he_return_code_t he_conn_inside_packet_received(he_conn_t *conn, uint8_t *packet, size_t length);
46 
68 he_return_code_t he_conn_outside_data_received(he_conn_t *conn, uint8_t *buffer, size_t length);
69 
70 he_return_code_t he_internal_flow_process_message(he_conn_t *conn);
71 he_return_code_t he_internal_flow_fetch_message(he_conn_t *conn);
73 
74 he_return_code_t he_internal_flow_outside_packet_received(he_conn_t *conn, uint8_t *packet,
75  size_t length);
76 he_return_code_t he_internal_flow_outside_stream_received(he_conn_t *conn, uint8_t *buffer,
77  size_t length);
78 he_return_code_t he_internal_flow_outside_data_verify_connection(he_conn_t *conn);
79 he_return_code_t he_internal_flow_outside_data_handle_messages(he_conn_t *conn);
80 
81 #endif // FLOW_H
The wire header format It is strongly discouraged to interact with this header structure, however, it is provided for specific use cases (such as a server rejecting a session, where by definition we don&#39;t have a connection object).
Definition: he.h:629
enum he_return_code he_return_code_t
All possible return codes for helium.
he_return_code_t he_internal_update_session_incoming(he_conn_t *conn, he_wire_hdr_t *hdr)
Definition: flow.c:207
he_return_code_t he_conn_inside_packet_received(he_conn_t *conn, uint8_t *packet, size_t length)
Called when the host application needs to deliver an inside packet to Helium.
Definition: flow.c:33
Core internal header file for libhelium.
he_return_code_t he_conn_outside_data_received(he_conn_t *conn, uint8_t *buffer, size_t length)
Called when the host application needs to deliver outside data to be processed by Helium...
Definition: flow.c:234
Definition: he.h:483