VLC  3.0.15
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 
27 struct vlc_tls;
28 struct vlc_tls_creds;
29 
30 struct vlc_tls *vlc_https_connect(struct vlc_tls_creds *creds,
31  const char *name, unsigned port,
32  bool *restrict two);
33 struct vlc_tls *vlc_https_connect_proxy(void *ctx, struct vlc_tls_creds *creds,
34  const char *name, unsigned port,
35  bool *restrict two, const char *proxy);
36 #endif
vlc_tls_creds
TLS credentials.
Definition: vlc_tls.h:67
vlc_https_connect_proxy
struct vlc_tls * vlc_https_connect_proxy(void *ctx, struct vlc_tls_creds *creds, const char *name, unsigned port, bool *restrict two, const char *proxy)
Definition: tunnel.c:135
vlc_tls
Transport layer socket.
Definition: vlc_tls.h:43
vlc_https_connect
struct vlc_tls * vlc_https_connect(struct vlc_tls_creds *creds, const char *name, unsigned port, bool *restrict two)
Definition: connmgr.c:55
name
const char name[16]
Definition: httpd.c:1249