1/*
2 This file is part of Mtproto-proxy Library.
3
4 Mtproto-proxy Library is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 Mtproto-proxy Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with Mtproto-proxy Library. If not, see <http://www.gnu.org/licenses/>.
16
17 Copyright 2013 Vkontakte Ltd
18 2013 Vitaliy Valtman
19 2013 Anton Maydell
20
21 Copyright 2014 Telegram Messenger Inc
22 2014 Vitaly Valtman
23 2014 Anton Maydell
24
25 Copyright 2015-2016 Telegram Messenger Inc
26 2015-2016 Vitaliy Valtman
27*/
28#pragma once
29
30void default_close_network_sockets (void);
31void engine_do_open_port (void);
32int try_open_port_range (int start_port, int end_port, int mod_port, int rem_port, int quit_on_fail);
33int try_open_port (int port, int quit_on_fail);
34int get_port_mod (void);
35void engine_server_init (void);
36void engine_set_tcp_methods (struct tcp_rpc_server_functions *F);
37void engine_set_http_fallback (conn_type_t *http_type, struct http_server_functions *http_functions);
38