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