sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
altcp_proxyconnect.h
Go to the documentation of this file.
1
9
10/*
11 * Copyright (c) 2018 Simon Goldschmidt
12 * All rights reserved.
13 *
14 * Redistribution and use in source and binary forms, with or without modification,
15 * are permitted provided that the following conditions are met:
16 *
17 * 1. Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright notice,
20 * this list of conditions and the following disclaimer in the documentation
21 * and/or other materials provided with the distribution.
22 * 3. The name of the author may not be used to endorse or promote products
23 * derived from this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
26 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
27 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
28 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * This file is part of the lwIP TCP/IP stack.
37 *
38 * Author: Simon Goldschmidt <goldsimon@gmx.de>
39 *
40 */
41
42#ifndef LWIP_HDR_APPS_ALTCP_PROXYCONNECT_H
43#define LWIP_HDR_APPS_ALTCP_PROXYCONNECT_H
44
45#include "lwip/opt.h"
46
47#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
48
49#include "lwip/ip_addr.h"
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55struct altcp_proxyconnect_config {
56 ip_addr_t proxy_addr;
57 u16_t proxy_port;
58};
59
60
61struct altcp_pcb *altcp_proxyconnect_new(struct altcp_proxyconnect_config *config, struct altcp_pcb *inner_pcb);
62struct altcp_pcb *altcp_proxyconnect_new_tcp(struct altcp_proxyconnect_config *config, u8_t ip_type);
63
64struct altcp_pcb *altcp_proxyconnect_alloc(void *arg, u8_t ip_type);
65
66#if LWIP_ALTCP_TLS
67struct altcp_proxyconnect_tls_config {
68 struct altcp_proxyconnect_config proxy;
69 struct altcp_tls_config *tls_config;
70};
71
72struct altcp_pcb *altcp_proxyconnect_tls_alloc(void *arg, u8_t ip_type);
73#endif /* LWIP_ALTCP_TLS */
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* LWIP_ALTCP */
80#endif /* LWIP_HDR_APPS_ALTCP_PROXYCONNECT_H */