PS2SDK
PS2 Homebrew Libraries
netdb.h
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 
11 #ifndef __PS2SDK_NETDB_H__
12 #define __PS2SDK_NETDB_H__
13 
14 #include <sys/cdefs.h>
15 #include <tcpip.h>
16 
17 __BEGIN_DECLS
18 extern struct hostent *gethostbyaddr(const void *addr, int len, int type);
19 extern struct hostent *gethostbyname(const char *name);
20 extern int gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop);
21 extern void freeaddrinfo(struct addrinfo *ai);
22 extern int getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res);
23 __END_DECLS
24 
25 #endif
tcpip.h
addrinfo
Definition: tcpip.h:1952
hostent
Definition: tcpip.h:1940