VLC 4.0.0-dev
Loading...
Searching...
No Matches
transport.h
Go to the documentation of this file.
1/*****************************************************************************
2 * transport.h: HTTP/TLS TCP transport layer declarations
3 *****************************************************************************
4 * Copyright © 2015 Rémi Denis-Courmont
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20
21#ifndef VLC_HTTP_TRANSPORT_H
22#define VLC_HTTP_TRANSPORT_H 1
23
24#include <stddef.h>
25#include <stdbool.h>
26
27struct vlc_tls;
28struct vlc_tls_client;
29
30struct vlc_tls *vlc_https_connect(struct vlc_tls_client *creds,
31 const char *name, unsigned port,
32 bool *restrict two);
33struct vlc_tls *vlc_https_connect_proxy(void *ctx,
34 struct vlc_tls_client *creds,
35 const char *name, unsigned port,
36 bool *restrict two, const char *proxy);
37bool vlc_http_port_blocked(unsigned port);
38
39#endif
const char name[16]
Definition httpd.c:1298
TLS client-side credentials.
Definition vlc_tls.h:141
Transport layer socket.
Definition vlc_tls.h:66
struct vlc_tls * vlc_https_connect_proxy(void *ctx, struct vlc_tls_client *creds, const char *name, unsigned port, bool *restrict two, const char *proxy)
Definition tunnel.c:135
bool vlc_http_port_blocked(unsigned port)
Definition ports.c:106
struct vlc_tls * vlc_https_connect(struct vlc_tls_client *creds, const char *name, unsigned port, bool *restrict two)
Definition connmgr.c:59