PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2ipc.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 __PS2IPC_H__
12#define __PS2IPC_H__
13
14#include <ps2ips.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20int ps2ipc_accept(int s, struct sockaddr *addr, int *addrlen);
21int ps2ipc_bind(int s, const struct sockaddr *name, int namelen);
22int ps2ipc_disconnect(int s);
23int ps2ipc_connect(int s, const struct sockaddr *name, int namelen);
24int ps2ipc_listen(int s, int backlog);
25int ps2ipc_recv(int s, void *mem, int len, unsigned int flags);
26int ps2ipc_recvfrom(int s, void *mem, int len, unsigned int flags, struct sockaddr *from, int *fromlen);
27int ps2ipc_send(int s, const void *dataptr, int size, unsigned int flags);
28int ps2ipc_sendto(int s, const void *dataptr, int size, unsigned int flags, const struct sockaddr *to, int tolen);
29int ps2ipc_socket(int domain, int type, int protocol);
30int ps2ipc_ps2ip_setconfig(const t_ip_info *ip_info);
31int ps2ipc_ps2ip_getconfig(char *netif_name, t_ip_info *ip_info);
32int ps2ipc_select(int maxfdp1, struct fd_set *readset, struct fd_set *writeset, struct fd_set *exceptset, struct timeval *timeout);
33int ps2ipc_ioctl(int s, long cmd, void *argp);
34int ps2ipc_getsockname(int s, struct sockaddr* name, int* namelen);
35int ps2ipc_getpeername(int s, struct sockaddr *name, int *namelen);
36int ps2ipc_getsockopt(int s, int level, int optname, void* optval, socklen_t* optlen);
37int ps2ipc_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
38struct hostent *ps2ipc_gethostbyname(const char *name);
39void ps2ipc_dns_setserver(u8 numdns, const ip_addr_t *dnsserver);
40const ip_addr_t *ps2ipc_dns_getserver(u8 numdns);
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* __PS2IPC_H__ */
Definition time.h:29