sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
ps2ipee.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
15
#ifndef __PS2IPEE_H__
16
#define __PS2IPEE_H__
17
18
#include <
ps2ip.h
>
19
/* t_ip_info's real definition - see ps2sdkapi.h's own comment on it for
20
* why it isn't just common/include/tcpip.h. */
21
#include <
ps2sdkapi.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/* The lwip_* socket functions used to be hand-copied forward
28
* declarations here too (each "From include/lwip/sockets.h:") - same
29
* stand-in pattern already found and removed from ps2ip.h itself (see
30
* that file's own comment). Removed 2026-09-03: ps2ip.h's real <sys/
31
* socket.h> chain already declares all of these with the real, current
32
* lwip signatures - the stale copies here had drifted (e.g.
33
* lwip_accept/lwip_recvfrom/lwip_getsockname/lwip_getpeername's
34
* `socklen_t *` parameters vs the real headers' current type), which
35
* only actually conflicted once a real consumer (ps2ip_ps2sdk.c, built
36
* as part of sdk-core's own full workspace for the first time this
37
* session) exercised the mismatch as "incompatible pointer type"
38
* errors rather than a silent redeclaration. */
39
40
extern
int
ps2ip_setconfig(
const
t_ip_info
* ip_info);
41
extern
int
ps2ip_getconfig(
char
* netif_name,
t_ip_info
* ip_info);
42
43
/* The "From include/lwip/inet.h:" stand-ins (ipaddr_addr/ip4addr_aton/
44
* ip4addr_ntoa/ip4addr_ntoa_r) used to live here too, same category as
45
* the lwip_* ones removed above - dropped 2026-09-03: real, reachable
46
* now via ps2ip.h's own <sys/socket.h> chain (lwip/ip4_addr.h), and
47
* this file's own copy of ipaddr_addr had actually drifted (`u32` vs
48
* lwip's real `u32_t` - unsigned int vs unsigned long, a genuine
49
* "conflicting types" error once a real consumer needed both). */
50
51
#ifdef PS2IP_DNS
52
/* From include/lwip/netdb.h: */
53
extern
struct
hostent
*lwip_gethostbyname(
const
char
*name);
54
extern
int
lwip_gethostbyname_r(
const
char
*name,
struct
hostent
*ret,
char
*buf,
55
size_t
buflen,
struct
hostent
**result,
int
*h_errnop);
56
extern
void
lwip_freeaddrinfo(
struct
addrinfo
*ai);
57
extern
int
lwip_getaddrinfo(
const
char
*nodename,
58
const
char
*servname,
59
const
struct
addrinfo
*hints,
60
struct
addrinfo
**res);
61
62
/* From include/lwip/dns.h: */
63
extern
void
dns_setserver(u8 numdns,
const
ip_addr_t *dnsserver);
64
extern
const
ip_addr_t* dns_getserver(u8 numdns);
65
#endif
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
// !defined(__PS2IPEE_H__)
ps2ip.h
ps2sdkapi.h
addrinfo
Definition
tcpip.h:1961
hostent
Definition
tcpip.h:1949
t_ip_info
Definition
tcpip.h:1999
core
ps2ip
include
ps2ipee.h
Generated by
1.18.0