|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Include dependency graph for ps2ips.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | ps2ip_init (void) |
| void | ps2ip_deinit (void) |
| int | accept (int s, struct sockaddr *addr, int *addrlen) |
| int | bind (int s, struct sockaddr *name, int namelen) |
| int | disconnect (int s) |
| int | connect (int s, struct sockaddr *name, int namelen) |
| int | listen (int s, int backlog) |
| int | recv (int s, void *mem, int len, unsigned int flags) |
| int | recvfrom (int s, void *mem, int len, unsigned int flags, struct sockaddr *from, int *fromlen) |
| int | send (int s, void *dataptr, int size, unsigned int flags) |
| int | sendto (int s, void *dataptr, int size, unsigned int flags, struct sockaddr *to, int tolen) |
| int | socket (int domain, int type, int protocol) |
| int | ps2ip_setconfig (t_ip_info *ip_info) |
| int | ps2ip_getconfig (char *netif_name, t_ip_info *ip_info) |
| int | select (int maxfdp1, struct fd_set *readset, struct fd_set *writeset, struct fd_set *exceptset, struct timeval *timeout) |
| int | ioctlsocket (int s, long cmd, void *argp) |
| int | getsockname (int s, struct sockaddr *name, int *namelen) |
| int | getpeername (int s, struct sockaddr *name, int *namelen) |
| int | getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) |
| int | setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen) |
| struct hostent * | gethostbyname (const char *name) |
| void | dns_setserver (u8 numdns, ip_addr_t *dnsserver) |
| const ip_addr_t * | dns_getserver (u8 numdns) |
PS2IP library.
Definition in file ps2ips.h.
| int accept | ( | int | s, |
| struct sockaddr * | addr, | ||
| int * | addrlen | ||
| ) |
Definition at line 95 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, cmd_pkt::len, lock_sema, NULL, PS2IPS_ID_ACCEPT, result, s, SifCallRpc(), SignalSema(), cmd_pkt::sockaddr, cmd_pkt::socket, and WaitSema().
| int bind | ( | int | s, |
| struct sockaddr * | name, | ||
| int | namelen | ||
| ) |
Definition at line 125 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, cmd_pkt::len, lock_sema, NULL, PS2IPS_ID_BIND, result, s, SifCallRpc(), SignalSema(), cmd_pkt::sockaddr, cmd_pkt::socket, and WaitSema().
| int connect | ( | int | s, |
| struct sockaddr * | name, | ||
| int | namelen | ||
| ) |
Definition at line 174 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, cmd_pkt::len, lock_sema, NULL, PS2IPS_ID_CONNECT, result, s, SifCallRpc(), SignalSema(), cmd_pkt::sockaddr, cmd_pkt::socket, and WaitSema().
| int disconnect | ( | int | s | ) |
Definition at line 151 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, lock_sema, NULL, PS2IPS_ID_DISCONNECT, result, s, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by serverThread().
Referenced by ethApplyIPConfig(), and ethPrintIPConfig().
Referenced by ethApplyIPConfig(), and main().
| struct hostent* gethostbyname | ( | const char * | name | ) |
| int getpeername | ( | int | s, |
| struct sockaddr * | name, | ||
| int * | namelen | ||
| ) |
Definition at line 583 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, cmd_pkt::len, lock_sema, NULL, PS2IPS_ID_GETPEERNAME, result, s, SifCallRpc(), SignalSema(), cmd_pkt::sockaddr, cmd_pkt::socket, and WaitSema().
| int getsockname | ( | int | s, |
| struct sockaddr * | name, | ||
| int * | namelen | ||
| ) |
Definition at line 556 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, cmd_pkt::len, lock_sema, NULL, PS2IPS_ID_GETSOCKNAME, result, s, SifCallRpc(), SignalSema(), cmd_pkt::sockaddr, cmd_pkt::socket, and WaitSema().
| int getsockopt | ( | int | s, |
| int | level, | ||
| int | optname, | ||
| void * | optval, | ||
| socklen_t * | optlen | ||
| ) |
Definition at line 610 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, getsockopt_res_pkt::buffer, getsockopt_pkt::level, lock_sema, NULL, getsockopt_res_pkt::optlen, getsockopt_pkt::optname, PS2IPS_ID_GETSOCKOPT, getsockopt_res_pkt::result, result, getsockopt_pkt::s, s, SifCallRpc(), SignalSema(), and WaitSema().
| int ioctlsocket | ( | int | s, |
| long | cmd, | ||
| void * | argp | ||
| ) |
Definition at line 525 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, ioctl_pkt::argp, ioctl_pkt::cmd, ioctl_pkt, lock_sema, NULL, PS2IPS_ID_IOCTL, ioctl_pkt::result, result, ioctl_pkt::s, s, SifCallRpc(), SignalSema(), ioctl_pkt::value, and WaitSema().
| int listen | ( | int | s, |
| int | backlog | ||
| ) |
Definition at line 200 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, listen_pkt::backlog, lock_sema, NULL, PS2IPS_ID_LISTEN, result, listen_pkt::s, s, SifCallRpc(), SignalSema(), and WaitSema().
| void ps2ip_deinit | ( | void | ) |
Definition at line 86 of file ps2ipc.c.
References _init_check, DeleteSema(), and lock_sema.
| int ps2ip_getconfig | ( | char * | netif_name, |
| t_ip_info * | ip_info | ||
| ) |
Definition at line 41 of file ps2ip.c.
References _init_check, _ps2ip, _rpc_buffer, ip_info, lock_sema, netif_name, NULL, PS2IPS_ID_GETCONFIG, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by ethApplyIPConfig(), ethGetDHCPStatus(), and ethPrintIPConfig().
| int ps2ip_init | ( | void | ) |
Definition at line 60 of file ps2ipc.c.
References _init_check, _ps2ip, ee_sema_t::attr, CreateSema(), ee_sema_t::init_count, lock_sema, ee_sema_t::max_count, nopdelay(), NULL, ee_sema_t::option, PS2IP_IRX, SifRpcClientData_t::server, and SifBindRpc().
Referenced by main().
| int ps2ip_setconfig | ( | t_ip_info * | ip_info | ) |
Definition at line 426 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, ip_info, lock_sema, NULL, PS2IPS_ID_SETCONFIG, result, SifCallRpc(), SignalSema(), and WaitSema().
| int recv | ( | int | s, |
| void * | mem, | ||
| int | len, | ||
| unsigned int | flags | ||
| ) |
Definition at line 240 of file ps2ipc.c.
References _init_check, _intr_data, _ps2ip, _rpc_buffer, send_pkt::ee_addr, send_pkt::flags, IS_UNCACHED_SEG, send_pkt::length, lock_sema, PS2IPS_ID_RECV, recv_intr(), result, r_recv_pkt::ret, s, SifCallRpc(), SifWriteBackDCache(), SignalSema(), send_pkt::socket, and WaitSema().
| int recvfrom | ( | int | s, |
| void * | mem, | ||
| int | len, | ||
| unsigned int | flags, | ||
| struct sockaddr * | from, | ||
| int * | fromlen | ||
| ) |
Definition at line 273 of file ps2ipc.c.
References _init_check, _intr_data, _ps2ip, _rpc_buffer, send_pkt::ee_addr, send_pkt::flags, IS_UNCACHED_SEG, send_pkt::length, lock_sema, PS2IPS_ID_RECVFROM, recv_intr(), result, r_recv_pkt::ret, s, SifCallRpc(), SifWriteBackDCache(), SignalSema(), r_recv_pkt::sockaddr, send_pkt::socket, and WaitSema().
| int select | ( | int | maxfdp1, |
| struct fd_set * | readset, | ||
| struct fd_set * | writeset, | ||
| struct fd_set * | exceptset, | ||
| struct timeval * | timeout | ||
| ) |
Definition at line 474 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, select_pkt::exceptset, select_pkt::exceptset_p, lock_sema, select_pkt::maxfdp1, NULL, PS2IPS_ID_SELECT, select_pkt::readset, select_pkt::readset_p, select_pkt::result, result, SifCallRpc(), SignalSema(), select_pkt::timeout, select_pkt::timeout_p, WaitSema(), select_pkt::writeset, and select_pkt::writeset_p.
| int send | ( | int | s, |
| void * | dataptr, | ||
| int | size, | ||
| unsigned int | flags | ||
| ) |
Definition at line 310 of file ps2ipc.c.
References _ps2ip, _rpc_buffer, send_pkt::ee_addr, send_pkt::flags, IS_UNCACHED_SEG, send_pkt::length, lock_sema, send_pkt::malign, send_pkt::malign_buff, NULL, PS2IPS_ID_SEND, result, s, SifCallRpc(), SifWriteBackDCache(), SignalSema(), send_pkt::socket, UNCACHED_SEG, and WaitSema().
| int sendto | ( | int | s, |
| void * | dataptr, | ||
| int | size, | ||
| unsigned int | flags, | ||
| struct sockaddr * | to, | ||
| int | tolen | ||
| ) |
Definition at line 354 of file ps2ipc.c.
References _ps2ip, _rpc_buffer, send_pkt::ee_addr, send_pkt::flags, IS_UNCACHED_SEG, send_pkt::length, lock_sema, send_pkt::malign, send_pkt::malign_buff, NULL, PS2IPS_ID_SENDTO, result, s, SifCallRpc(), SifWriteBackDCache(), SignalSema(), send_pkt::sockaddr, send_pkt::socket, UNCACHED_SEG, and WaitSema().
| int setsockopt | ( | int | s, |
| int | level, | ||
| int | optname, | ||
| const void * | optval, | ||
| socklen_t | optlen | ||
| ) |
Definition at line 640 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, setsockopt_pkt::buffer, lock_sema, NULL, setsockopt_pkt::optlen, setsockopt_pkt::optname, PS2IPS_ID_SETSOCKOPT, result, setsockopt_pkt::s, s, SifCallRpc(), SignalSema(), and WaitSema().
| int socket | ( | int | domain, |
| int | type, | ||
| int | protocol | ||
| ) |
Definition at line 400 of file ps2ipc.c.
References _init_check, _ps2ip, _rpc_buffer, socket_pkt::domain, lock_sema, NULL, socket_pkt::protocol, PS2IPS_ID_SOCKET, result, SifCallRpc(), SignalSema(), socket_pkt::type, and WaitSema().