PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
#include <string.h>
#include <kernel.h>
#include <sifrpc.h>
#include <ps2ips.h>
#include <ps2ip_rpc.h>
Go to the source code of this file.
Data Structures | |
union | .__attribute__ |
Functions | ||
struct { | ||
union { | ||
s32 | result | |
s32 | s | |
cmd_pkt | cmd_pkt | |
listen_pkt | listen_pkt | |
s_recv_pkt | s_recv_pkt | |
r_recv_pkt | r_recv_pkt | |
send_pkt | send_pkt | |
socket_pkt | socket_pkt | |
t_ip_info | ip_info | |
char | netif_name [8] | |
select_pkt | select_pkt | |
ioctl_pkt | ioctl_pkt | |
getsockopt_pkt | getsockopt_pkt | |
getsockopt_res_pkt | getsockopt_res_pkt | |
setsockopt_pkt | setsockopt_pkt | |
char | hostname [256] | |
gethostbyname_res_pkt | gethostbyname_res_pkt | |
dns_setserver_pkt | dns_setserver_pkt | |
dns_getserver_res_pkt | dns_getserver_res_pkt | |
u8 | numdns | |
u8 | buffer [512] | |
} | __attribute__ | |
} | __attribute__ ((aligned(64))) | |
void | _ps2sdk_ps2ipc_init (void) | |
void | _ps2sdk_ps2ipc_deinit (void) | |
int | ps2ip_init (void) | |
void | ps2ip_deinit (void) | |
int | ps2ipc_accept (int s, struct sockaddr *addr, int *addrlen) | |
int | ps2ipc_bind (int s, const struct sockaddr *name, int namelen) | |
int | ps2ipc_disconnect (int s) | |
int | ps2ipc_connect (int s, const struct sockaddr *name, int namelen) | |
int | ps2ipc_listen (int s, int backlog) | |
static void | recv_intr (void *data_raw) | |
int | ps2ipc_recv (int s, void *mem, int len, unsigned int flags) | |
int | ps2ipc_recvfrom (int s, void *mem, int len, unsigned int flags, struct sockaddr *from, int *fromlen) | |
int | ps2ipc_send (int s, const void *dataptr, int size, unsigned int flags) | |
int | ps2ipc_sendto (int s, const void *dataptr, int size, unsigned int flags, const struct sockaddr *to, int tolen) | |
int | ps2ipc_socket (int domain, int type, int protocol) | |
int | ps2ipc_ps2ip_setconfig (const t_ip_info *ip_info) | |
int | ps2ipc_ps2ip_getconfig (char *netif_name, t_ip_info *ip_info) | |
int | ps2ipc_select (int maxfdp1, struct fd_set *readset, struct fd_set *writeset, struct fd_set *exceptset, struct timeval *timeout) | |
int | ps2ipc_ioctl (int s, long cmd, void *argp) | |
int | ps2ipc_getsockname (int s, struct sockaddr *name, int *namelen) | |
int | ps2ipc_getpeername (int s, struct sockaddr *name, int *namelen) | |
int | ps2ipc_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) | |
int | ps2ipc_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen) | |
Variables | ||
static int | _init_check = 0 | |
static int | lock_sema = -1 | |
static SifRpcClientData_t | _ps2ip | |
union { | ||
s32 | result | |
s32 | s | |
cmd_pkt | cmd_pkt | |
listen_pkt | listen_pkt | |
s_recv_pkt | s_recv_pkt | |
r_recv_pkt | r_recv_pkt | |
send_pkt | send_pkt | |
socket_pkt | socket_pkt | |
t_ip_info | ip_info | |
char | netif_name [8] | |
select_pkt | select_pkt | |
ioctl_pkt | ioctl_pkt | |
getsockopt_pkt | getsockopt_pkt | |
getsockopt_res_pkt | getsockopt_res_pkt | |
setsockopt_pkt | setsockopt_pkt | |
char | hostname [256] | |
gethostbyname_res_pkt | gethostbyname_res_pkt | |
dns_setserver_pkt | dns_setserver_pkt | |
dns_getserver_res_pkt | dns_getserver_res_pkt | |
u8 | numdns | |
u8 | buffer [512] | |
}; | ||
static ip_addr_t | dns_servers [DNS_MAX_SERVERS] | |
const ip_addr_t | ip_addr_any = IPADDR4_INIT(IPADDR_ANY) | |
ps2ip ee client to iop ps2ip.
Definition in file ps2ipc.c.
union .__attribute__ |
Data Fields | ||
---|---|---|
s32 | result | |
s32 | s | |
cmd_pkt | cmd_pkt | |
listen_pkt | listen_pkt | |
s_recv_pkt | s_recv_pkt | |
r_recv_pkt | r_recv_pkt | |
send_pkt | send_pkt | |
socket_pkt | socket_pkt | |
t_ip_info | ip_info | |
char | netif_name[8] | |
select_pkt | select_pkt | |
ioctl_pkt | ioctl_pkt | |
getsockopt_pkt | getsockopt_pkt | |
getsockopt_res_pkt | getsockopt_res_pkt | |
setsockopt_pkt | setsockopt_pkt | |
char | hostname[256] | |
gethostbyname_res_pkt | gethostbyname_res_pkt | |
dns_setserver_pkt | dns_setserver_pkt | |
dns_getserver_res_pkt | dns_getserver_res_pkt | |
u8 | numdns | |
u8 | buffer[512] |
|
extern |
Definition at line 390 of file ps2ipc_ps2sdk.c.
|
extern |
Definition at line 396 of file ps2ipc_ps2sdk.c.
int ps2ipc_accept | ( | int | s, |
struct sockaddr * | addr, | ||
int * | addrlen | ||
) |
int ps2ipc_bind | ( | int | s, |
const struct sockaddr * | name, | ||
int | namelen | ||
) |
int ps2ipc_connect | ( | int | s, |
const struct sockaddr * | name, | ||
int | namelen | ||
) |
int ps2ipc_recv | ( | int | s, |
void * | mem, | ||
int | len, | ||
unsigned int | flags | ||
) |
int ps2ipc_recvfrom | ( | int | s, |
void * | mem, | ||
int | len, | ||
unsigned int | flags, | ||
struct sockaddr * | from, | ||
int * | fromlen | ||
) |
int ps2ipc_send | ( | int | s, |
const void * | dataptr, | ||
int | size, | ||
unsigned int | flags | ||
) |
int ps2ipc_sendto | ( | int | s, |
const void * | dataptr, | ||
int | size, | ||
unsigned int | flags, | ||
const struct sockaddr * | to, | ||
int | tolen | ||
) |
int ps2ipc_ps2ip_getconfig | ( | char * | netif_name, |
t_ip_info * | ip_info | ||
) |
int ps2ipc_getsockname | ( | int | s, |
struct sockaddr * | name, | ||
int * | namelen | ||
) |
int ps2ipc_getpeername | ( | int | s, |
struct sockaddr * | name, | ||
int * | namelen | ||
) |
int ps2ipc_getsockopt | ( | int | s, |
int | level, | ||
int | optname, | ||
void * | optval, | ||
socklen_t * | optlen | ||
) |
int ps2ipc_setsockopt | ( | int | s, |
int | level, | ||
int | optname, | ||
const void * | optval, | ||
socklen_t | optlen | ||
) |
|
static |
const ip_addr_t ip_addr_any = IPADDR4_INIT(IPADDR_ANY) |