Functions for the flow of packets through Helium. More...
Go to the source code of this file.
Functions | |
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. More... | |
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. More... | |
he_return_code_t | he_internal_flow_process_message (he_conn_t *conn, he_packet_buffer_t *read_packet) |
he_return_code_t | he_internal_flow_fetch_message (he_conn_t *conn, he_packet_buffer_t *read_packet) |
he_return_code_t | he_internal_update_session_incoming (he_conn_t *conn, he_wire_hdr_t *hdr) |
he_return_code_t | he_internal_flow_outside_packet_received (he_conn_t *conn, uint8_t *packet, size_t length) |
he_return_code_t | he_internal_flow_outside_stream_received (he_conn_t *conn, uint8_t *buffer, size_t length) |
he_return_code_t | he_internal_flow_outside_data_verify_connection (he_conn_t *conn) |
he_return_code_t | he_internal_flow_outside_data_handle_messages (he_conn_t *conn) |
bool | he_internal_flow_should_fragment (he_conn_t *conn, uint16_t effective_pmtu, uint16_t length) |
Functions for the flow of packets through Helium.
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.
conn | A valid connection |
packet | A pointer to the packet data |
length | The length of the packet |
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.
conn | A valid Helium connection |
buffer | A pointer to the packet data |
length | The length of the packet |
Streaming Stuff
bool he_internal_flow_should_fragment | ( | he_conn_t * | conn, |
uint16_t | effective_pmtu, | ||
uint16_t | length | ||
) |
Lightway Core Copyright (C) 2023 Express VPN International Ltd.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
he_return_code_t he_internal_update_session_incoming | ( | he_conn_t * | conn, |
he_wire_hdr_t * | hdr | ||
) |
Exit early if the session ID is not set