Helium
src
he
msg_handlers.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
25
#ifndef MSG_HANDLERS_H
26
#define MSG_HANDLERS_H
27
28
#include "
he.h
"
29
#include "
he_internal.h
"
30
31
he_return_code_t
he_handle_msg_noop
(
he_conn_t
*conn, uint8_t *packet,
int
length);
32
he_return_code_t
he_handle_msg_ping(
he_conn_t
*conn, uint8_t *packet,
int
length);
33
he_return_code_t
he_handle_msg_pong(
he_conn_t
*conn, uint8_t *packet,
int
length);
34
he_return_code_t
he_handle_msg_auth(
he_conn_t
*conn, uint8_t *packet,
int
length);
35
he_return_code_t
he_handle_msg_data(
he_conn_t
*conn, uint8_t *packet,
int
length);
36
he_return_code_t
he_handle_msg_data_with_frag(
he_conn_t
*conn, uint8_t *packet,
int
length);
37
he_return_code_t
he_handle_msg_config_ipv4(
he_conn_t
*conn, uint8_t *packet,
int
length);
38
he_return_code_t
he_handle_msg_auth_response(
he_conn_t
*conn, uint8_t *packet,
int
length);
39
he_return_code_t
he_handle_msg_auth_response_with_config(
he_conn_t
*conn, uint8_t *packet,
40
int
length);
41
he_return_code_t
he_handle_msg_deprecated_13(
he_conn_t
*conn, uint8_t *packet,
int
length);
42
he_return_code_t
he_handle_msg_goodbye(
he_conn_t
*conn, uint8_t *packet,
int
length);
43
he_return_code_t
he_handle_msg_server_config(
he_conn_t
*conn, uint8_t *packet,
int
length);
44
45
#endif // MSG_HANDLERS_H
he_internal.h
Core internal header file for libhelium.
he_return_code_t
enum he_return_code he_return_code_t
All possible return codes for helium.
he_handle_msg_noop
he_return_code_t he_handle_msg_noop(he_conn_t *conn, uint8_t *packet, int length)
Definition:
msg_handlers.c:32
he.h
Core public header file for libhelium.
he_conn
Definition:
he_internal.h:170
Generated by
1.8.17