vitasdk
Documentation of the vitasdk
|
Exports for User.
Include the header file in your project:
Link the library to the executable:
Load the required module:
Include the header file in your project:
Typedefs | |
typedef void *(* | SceNetResolverFunctionAllocate) (unsigned int size, int rid, const char *name, void *user) |
typedef void(* | SceNetResolverFunctionFree) (void *ptr, int rid, const char *name, void *user) |
Macros | |
#define | SCE_NET_EPOLL_ABORT_FLAG_PRESERVATION 0x00000001 |
#define | SCE_NET_RESOLVER_PORT 53 |
#define | SCE_NET_RESOLVER_HOSTNAME_LEN_MAX 255 |
#define | SCE_NET_IP_DEFAULT_MULTICAST_TTL 1 |
#define | SCE_NET_IP_DEFAULT_MULTICAST_LOOP 1 |
#define | SCE_NET_IPVERSION 4 |
#define | SCE_NET_IP_RF 0x8000 |
#define | SCE_NET_IP_DF 0x4000 |
#define | SCE_NET_IP_MF 0x2000 |
#define | SCE_NET_IP_OFFMASK 0x1FFF |
#define | SCE_NET_INADDR_ANY 0x00000000 |
#define | SCE_NET_INADDR_LOOPBACK 0x7F000001 |
#define | SCE_NET_INADDR_BROADCAST 0xFFFFFFFF |
#define | SCE_NET_INADDR_UNSPEC_GROUP 0xE0000000 |
#define | SCE_NET_INADDR_AUTOIP 0xA9FE0000 |
#define | SCE_NET_IN_CLASSD_NET 0xF0000000 |
#define | SCE_NET_IN_AUTOIP_NET 0xFFFF0000 |
#define | SCE_NET_ADHOC_PORT 3658 |
#define | SCE_NET_AF_INET 2 |
#define | SCE_NET_DEBUG_NAME_LEN_MAX 31 |
#define | SCE_NET_ID_SOCKET_MIN 0 |
#define | SCE_NET_ID_SOCKET_MAX 1023 |
struct SceNetEmulationData |
struct SceNetEmulationParam |
Data Fields | ||
---|---|---|
unsigned short int | version | |
unsigned short int | option_number | |
unsigned short int | current_version | |
unsigned short int | result | |
unsigned int | flags | |
unsigned int | reserved1 | |
SceNetEmulationData | send | |
SceNetEmulationData | recv | |
unsigned int | seed | |
unsigned char | reserved[44] |
union SceNetEpollData |
Data Fields | ||
---|---|---|
void * | ptr | |
int | fd | |
unsigned int | u32 | |
unsigned long long int | u64 | |
SceNetEpollDataExt | ext |
struct SceNetEpollEvent |
Data Fields | ||
---|---|---|
unsigned int | events | |
unsigned int | reserved | |
SceNetEpollSystemData | system | |
SceNetEpollData | data |
struct SceNetResolverParam |
Data Fields | ||
---|---|---|
SceNetResolverFunctionAllocate | allocate | |
SceNetResolverFunctionFree | free | |
void * | user |
struct SceNetSockaddrIn |
Data Fields | ||
---|---|---|
unsigned char | sin_len | |
unsigned char | sin_family | |
unsigned short int | sin_port | |
SceNetInAddr | sin_addr | |
unsigned short int | sin_vport | |
char | sin_zero[6] |
struct SceNetIpMreq |
Data Fields | ||
---|---|---|
SceNetInAddr | imr_multiaddr | |
SceNetInAddr | imr_interface |
struct SceNetDnsInfo |
Data Fields | ||
---|---|---|
SceNetInAddr | dns_addr[2] |
struct SceNetMsghdr |
Data Fields | ||
---|---|---|
void * | msg_name | |
unsigned int | msg_namelen | |
SceNetIovec * | msg_iov | |
int | msg_iovlen | |
void * | msg_control | |
unsigned int | msg_controllen | |
int | msg_flags |
struct SceNetSockInfo |
Data Fields | ||
---|---|---|
char | name[SCE_NET_DEBUG_NAME_LEN_MAX+1] | |
int | pid | |
int | s | |
char | socket_type | |
char | policy | |
short int | reserved16 | |
int | recv_queue_length | |
int | send_queue_length | |
SceNetInAddr | local_adr | |
SceNetInAddr | remote_adr | |
unsigned short int | local_port | |
unsigned short int | remote_port | |
unsigned short int | local_vport | |
unsigned short int | remote_vport | |
int | state | |
int | flags | |
int | reserved[8] |
struct SceNetStatisticsInfo |
union SceNetIpHeaderUnion |
Data Fields | ||
---|---|---|
SceNetIpHeaderIpVerHl | ip_ver_hl | |
unsigned char | ver_hl |
struct SceNetIpHeader |
Data Fields | ||
---|---|---|
SceNetIpHeaderUnion | un | |
unsigned char | ip_tos | |
unsigned short | ip_len | |
unsigned short | ip_id | |
unsigned short | ip_off | |
unsigned char | ip_ttl | |
unsigned char | ip_p | |
unsigned short | ip_sum | |
SceNetInAddr | ip_src | |
SceNetInAddr | ip_dst |
union SceNetIcmpHeaderUnion |
Data Fields | ||
---|---|---|
SceNetIcmpHeaderEcho | echo | |
unsigned int | gateway | |
SceNetIcmpHeaderFrag | frag |
struct SceNetIcmpHeader |
Data Fields | ||
---|---|---|
unsigned char | type | |
unsigned char | code | |
unsigned short | checksum | |
SceNetIcmpHeaderUnion | un |
#define SCE_NET_EPOLL_ABORT_FLAG_PRESERVATION 0x00000001 |
#define SCE_NET_RESOLVER_PORT 53 |
#define SCE_NET_RESOLVER_HOSTNAME_LEN_MAX 255 |
#define SCE_NET_IP_DEFAULT_MULTICAST_TTL 1 |
#define SCE_NET_IP_DEFAULT_MULTICAST_LOOP 1 |
#define SCE_NET_IPVERSION 4 |
#define SCE_NET_IP_RF 0x8000 |
#define SCE_NET_IP_DF 0x4000 |
#define SCE_NET_IP_MF 0x2000 |
#define SCE_NET_IP_OFFMASK 0x1FFF |
#define SCE_NET_INADDR_ANY 0x00000000 |
#define SCE_NET_INADDR_LOOPBACK 0x7F000001 |
#define SCE_NET_INADDR_BROADCAST 0xFFFFFFFF |
#define SCE_NET_INADDR_UNSPEC_GROUP 0xE0000000 |
#define SCE_NET_INADDR_AUTOIP 0xA9FE0000 |
#define SCE_NET_IN_CLASSD_NET 0xF0000000 |
#define SCE_NET_IN_AUTOIP_NET 0xFFFF0000 |
#define SCE_NET_ADHOC_PORT 3658 |
#define SCE_NET_AF_INET 2 |
#define SCE_NET_DEBUG_NAME_LEN_MAX 31 |
#define SCE_NET_ID_SOCKET_MIN 0 |
#define SCE_NET_ID_SOCKET_MAX 1023 |
typedef void*(* SceNetResolverFunctionAllocate) (unsigned int size, int rid, const char *name, void *user) |
typedef void(* SceNetResolverFunctionFree) (void *ptr, int rid, const char *name, void *user) |
Resolver specific error codes.
enum SceNetDumpType |
Flags to specify as argument to sceNetDumpRead()
Enumerator | |
---|---|
SCE_NET_DUMP_PEEK | |
SCE_NET_DUMP_DONTWAIT | |
SCE_NET_DUMP_OVERFLOW | |
SCE_NET_DUMP_ABORT_FLAG_PRESERVATION |
enum SceNetEpollEventType |
Events for SceNetEpollEvent.
Enumerator | |
---|---|
SCE_NET_EPOLLIN | |
SCE_NET_EPOLLOUT | |
SCE_NET_EPOLLERR | |
SCE_NET_EPOLLHUP | |
SCE_NET_EPOLLDESCID |
Flags to specify as argument to sceNetEpollControl()
Enumerator | |
---|---|
SCE_NET_EPOLL_CTL_ADD | |
SCE_NET_EPOLL_CTL_MOD | |
SCE_NET_EPOLL_CTL_DEL |
enum SceNetEmulationFlag |
Flags to specify as argument to sceNetEmulationGet() / sceNetEmulationSet()
Enumerator | |
---|---|
SCE_NET_EMULATION_FLAG_ETH0 | |
SCE_NET_EMULATION_FLAG_WLAN0 |
enum SceNetResolverFlag |
Flags to specify as argument to sceNetResolverStartNtoa() / sceNetResolverStartAton()
Enumerator | |
---|---|
SCE_NET_RESOLVER_ASYNC | |
SCE_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS |
Flags to specify as argument to sceNetResolverAbort()
Enumerator | |
---|---|
SCE_NET_RESOLVER_ABORT_FLAG_NTOA_PRESERVATION | |
SCE_NET_RESOLVER_ABORT_FLAG_ATON_PRESERVATION |
Flags to specify as argument to sceNetSocketAbort()
Enumerator | |
---|---|
SCE_NET_SOCKET_ABORT_FLAG_RCV_PRESERVATION | |
SCE_NET_SOCKET_ABORT_FLAG_SND_PRESERVATION |
enum SceNetShutdownFlag |
Flags to specify as argument to sceNetShutdown.
Enumerator | |
---|---|
SCE_NET_SHUT_RD | |
SCE_NET_SHUT_WR | |
SCE_NET_SHUT_RDWR |
enum SceNetErrorCode |
Net Error Codes.
Specific kernel and libnet error codes.
enum SceNetSockInfoState |
state for SceNetSockInfo structure
enum SceNetSockInfoFlag |
flags for SceNetSockInfo structure
enum SceNetProtocol |
enum SceNetSocketOption |
Socket Options.
enum SceNetSocketType |
enum SceNetMsgFlag |
enum SceNetIcmpType |
Types to specify to SceNetIcmpHeader structure.
enum SceNetIcmpCode |
Codes to specify to SceNetIcmpHeader structure.
VITASDK_BUILD_ASSERT_EQ | ( | 0xC | , |
SceNetInitParam | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0xE0 | , |
SceNetEmulationData | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x200 | , |
SceNetEmulationParam | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetEpollDataExt | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetEpollData | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
SceNetEpollSystemData | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x20 | , |
SceNetEpollEvent | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0xC | , |
SceNetResolverParam | |||
) |
int sceNetInit | ( | SceNetInitParam * | param | ) |
int sceNetTerm | ( | void | ) |
int sceNetShowIfconfig | ( | void * | p, |
int | b | ||
) |
int sceNetShowRoute | ( | void | ) |
int sceNetShowNetstat | ( | void | ) |
int sceNetEmulationSet | ( | SceNetEmulationParam * | param, |
int | flags | ||
) |
int sceNetEmulationGet | ( | SceNetEmulationParam * | param, |
int | flags | ||
) |
int sceNetResolverCreate | ( | const char * | name, |
SceNetResolverParam * | param, | ||
int | flags | ||
) |
int sceNetResolverStartNtoa | ( | int | rid, |
const char * | hostname, | ||
SceNetInAddr * | addr, | ||
int | timeout, | ||
int | retry, | ||
int | flags | ||
) |
int sceNetResolverStartAton | ( | int | rid, |
const SceNetInAddr * | addr, | ||
char * | hostname, | ||
int | len, | ||
int | timeout, | ||
int | retry, | ||
int | flags | ||
) |
int sceNetResolverGetError | ( | int | rid, |
int * | result | ||
) |
int sceNetResolverDestroy | ( | int | rid | ) |
int sceNetResolverAbort | ( | int | rid, |
int | flags | ||
) |
int sceNetDumpCreate | ( | const char * | name, |
int | len, | ||
int | flags | ||
) |
int sceNetDumpRead | ( | int | id, |
void * | buf, | ||
int | len, | ||
int * | pflags | ||
) |
int sceNetDumpDestroy | ( | int | id | ) |
int sceNetDumpAbort | ( | int | id, |
int | flags | ||
) |
int sceNetEpollCreate | ( | const char * | name, |
int | flags | ||
) |
int sceNetEpollControl | ( | int | eid, |
int | op, | ||
int | id, | ||
SceNetEpollEvent * | event | ||
) |
int sceNetEpollWait | ( | int | eid, |
SceNetEpollEvent * | events, | ||
int | maxevents, | ||
int | timeout | ||
) |
int sceNetEpollWaitCB | ( | int | eid, |
SceNetEpollEvent * | events, | ||
int | maxevents, | ||
int | timeout | ||
) |
int sceNetEpollDestroy | ( | int | eid | ) |
int sceNetEpollAbort | ( | int | eid, |
int | flags | ||
) |
int sceNetEtherStrton | ( | const char * | str, |
SceNetEtherAddr * | n | ||
) |
int sceNetEtherNtostr | ( | const SceNetEtherAddr * | n, |
char * | str, | ||
unsigned int | len | ||
) |
int sceNetGetMacAddress | ( | SceNetEtherAddr * | addr, |
int | flags | ||
) |
int sceNetSocket | ( | const char * | name, |
int | domain, | ||
int | type, | ||
int | protocol | ||
) |
int sceNetAccept | ( | int | s, |
SceNetSockaddr * | addr, | ||
unsigned int * | addrlen | ||
) |
int sceNetBind | ( | int | s, |
const SceNetSockaddr * | addr, | ||
unsigned int | addrlen | ||
) |
int sceNetConnect | ( | int | s, |
const SceNetSockaddr * | name, | ||
unsigned int | namelen | ||
) |
int sceNetGetpeername | ( | int | s, |
SceNetSockaddr * | name, | ||
unsigned int * | namelen | ||
) |
int sceNetGetsockname | ( | int | s, |
SceNetSockaddr * | name, | ||
unsigned int * | namelen | ||
) |
int sceNetGetsockopt | ( | int | s, |
int | level, | ||
int | optname, | ||
void * | optval, | ||
unsigned int * | optlen | ||
) |
int sceNetListen | ( | int | s, |
int | backlog | ||
) |
int sceNetRecv | ( | int | s, |
void * | buf, | ||
unsigned int | len, | ||
int | flags | ||
) |
int sceNetRecvfrom | ( | int | s, |
void * | buf, | ||
unsigned int | len, | ||
int | flags, | ||
SceNetSockaddr * | from, | ||
unsigned int * | fromlen | ||
) |
int sceNetRecvmsg | ( | int | s, |
SceNetMsghdr * | msg, | ||
int | flags | ||
) |
int sceNetSend | ( | int | s, |
const void * | msg, | ||
unsigned int | len, | ||
int | flags | ||
) |
int sceNetSendto | ( | int | s, |
const void * | msg, | ||
unsigned int | len, | ||
int | flags, | ||
const SceNetSockaddr * | to, | ||
unsigned int | tolen | ||
) |
int sceNetSendmsg | ( | int | s, |
const SceNetMsghdr * | msg, | ||
int | flags | ||
) |
int sceNetSetsockopt | ( | int | s, |
int | level, | ||
int | optname, | ||
const void * | optval, | ||
unsigned int | optlen | ||
) |
int sceNetShutdown | ( | int | s, |
int | how | ||
) |
int sceNetSocketClose | ( | int | s | ) |
int sceNetSocketAbort | ( | int | s, |
int | flags | ||
) |
int sceNetGetSockInfo | ( | int | s, |
SceNetSockInfo * | info, | ||
int | n, | ||
int | flags | ||
) |
int sceNetGetSockIdInfo | ( | SceNetFdSet * | fds, |
int | sockinfoflags, | ||
int | flags | ||
) |
int sceNetGetStatisticsInfo | ( | SceNetStatisticsInfo * | info, |
int | flags | ||
) |
int sceNetSetDnsInfo | ( | SceNetDnsInfo * | info, |
int | flags | ||
) |
int sceNetClearDnsCache | ( | int | flags | ) |
const char* sceNetInetNtop | ( | int | af, |
const void * | src, | ||
char * | dst, | ||
unsigned int | size | ||
) |
int sceNetInetPton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
long long unsigned int sceNetHtonll | ( | unsigned long long int | host64 | ) |
unsigned int sceNetHtonl | ( | unsigned int | host32 | ) |
unsigned short int sceNetHtons | ( | unsigned short int | host16 | ) |
unsigned long long int sceNetNtohll | ( | unsigned long long int | net64 | ) |
unsigned int sceNetNtohl | ( | unsigned int | net32 | ) |
unsigned short int sceNetNtohs | ( | unsigned short int | net16 | ) |
int* sceNetErrnoLoc | ( | void | ) |
Get pointer to last network errno.
VITASDK_BUILD_ASSERT_EQ | ( | 0x80 | , |
SceNetFdSet | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceNetInAddr | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
SceNetSockaddrIn | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetIpMreq | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 6 | , |
SceNetEtherAddr | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetDnsInfo | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetLinger | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
SceNetSockaddr | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetIovec | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x1C | , |
SceNetMsghdr | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x6C | , |
SceNetSockInfo | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
SceNetStatisticsInfo | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 2 | , |
SceNetIpHeaderIpVerHl | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 2 | , |
SceNetIpHeaderUnion | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
SceNetIpHeader | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceNetIcmpHeaderEcho | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceNetIcmpHeaderFrag | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceNetIcmpHeaderUnion | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceNetIcmpHeader | |||
) |