vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:

#include <psp2/net/net.h>


Link the library to the executable:

SceNet_stub


Load the required module:

int sceSysmoduleLoadModule(SceSysmoduleModuleId id)
Load a module.
@ SCE_SYSMODULE_NET
Net module.
Definition: sysmodule.h:28




Using this library in your project

Include the header file in your project:



Functions

 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. More...
 
 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)
 

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
 

Data Structure Documentation

◆ SceNetInitParam

struct SceNetInitParam
Data Fields
void * memory
int size
int flags

◆ SceNetEmulationData

struct SceNetEmulationData
Data Fields
unsigned short int drop_rate
unsigned short int drop_duration
unsigned short int pass_duration
unsigned short int delay_time
unsigned short int delay_jitter
unsigned short int order_rate
unsigned short int order_delay_time
unsigned short int duplication_rate
unsigned int bps_limit
unsigned short int lower_size_limit
unsigned short int upper_size_limit
unsigned int system_policy_pattern
unsigned int game_policy_pattern
unsigned short int policy_flags[64]
unsigned char reserved[64]

◆ SceNetEmulationParam

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]

◆ SceNetEpollDataExt

struct SceNetEpollDataExt
Data Fields
int id
unsigned int u32

◆ SceNetEpollData

union SceNetEpollData
Data Fields
void * ptr
int fd
unsigned int u32
unsigned long long int u64
SceNetEpollDataExt ext

◆ SceNetEpollSystemData

struct SceNetEpollSystemData
Data Fields
unsigned int system[4]

◆ SceNetEpollEvent

struct SceNetEpollEvent
Data Fields
unsigned int events
unsigned int reserved
SceNetEpollSystemData system
SceNetEpollData data

◆ SceNetResolverParam

struct SceNetResolverParam
Data Fields
SceNetResolverFunctionAllocate allocate
SceNetResolverFunctionFree free
void * user

◆ SceNetFdSet

struct SceNetFdSet
Data Fields
unsigned int bits[32]

◆ SceNetInAddr

struct SceNetInAddr
Data Fields
unsigned int s_addr

◆ SceNetSockaddrIn

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]

◆ SceNetIpMreq

struct SceNetIpMreq
Data Fields
SceNetInAddr imr_multiaddr
SceNetInAddr imr_interface

◆ SceNetEtherAddr

struct SceNetEtherAddr
Data Fields
unsigned char data[6]

◆ SceNetDnsInfo

struct SceNetDnsInfo
Data Fields
SceNetInAddr dns_addr[2]

◆ SceNetLinger

struct SceNetLinger
Data Fields
int l_onoff
int l_linger

◆ SceNetSockaddr

struct SceNetSockaddr
Data Fields
unsigned char sa_len
unsigned char sa_family
char sa_data[14]

◆ SceNetIovec

struct SceNetIovec
Data Fields
void * iov_base
unsigned int iov_len

◆ SceNetMsghdr

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

◆ SceNetSockInfo

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]

◆ SceNetStatisticsInfo

struct SceNetStatisticsInfo
Data Fields
int kernel_mem_free_size
int kernel_mem_free_min
int packet_count
int packet_qos_count
int libnet_mem_free_size
int libnet_mem_free_min

◆ SceNetIpHeaderIpVerHl

struct SceNetIpHeaderIpVerHl
Data Fields
unsigned char hl
unsigned char ver

◆ SceNetIpHeaderUnion

union SceNetIpHeaderUnion
Data Fields
SceNetIpHeaderIpVerHl ip_ver_hl
unsigned char ver_hl

◆ SceNetIpHeader

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

◆ SceNetIcmpHeaderEcho

struct SceNetIcmpHeaderEcho
Data Fields
unsigned short id
unsigned short sequence

◆ SceNetIcmpHeaderFrag

struct SceNetIcmpHeaderFrag
Data Fields
unsigned short unused
unsigned short mtu

◆ SceNetIcmpHeaderUnion

union SceNetIcmpHeaderUnion
Data Fields
SceNetIcmpHeaderEcho echo
unsigned int gateway
SceNetIcmpHeaderFrag frag

◆ SceNetIcmpHeader

struct SceNetIcmpHeader
Data Fields
unsigned char type
unsigned char code
unsigned short checksum
SceNetIcmpHeaderUnion un

Macro Definition Documentation

◆ SCE_NET_EPOLL_ABORT_FLAG_PRESERVATION

#define SCE_NET_EPOLL_ABORT_FLAG_PRESERVATION   0x00000001

◆ SCE_NET_RESOLVER_PORT

#define SCE_NET_RESOLVER_PORT   53

◆ SCE_NET_RESOLVER_HOSTNAME_LEN_MAX

#define SCE_NET_RESOLVER_HOSTNAME_LEN_MAX   255

◆ SCE_NET_IP_DEFAULT_MULTICAST_TTL

#define SCE_NET_IP_DEFAULT_MULTICAST_TTL   1

◆ SCE_NET_IP_DEFAULT_MULTICAST_LOOP

#define SCE_NET_IP_DEFAULT_MULTICAST_LOOP   1

◆ SCE_NET_IPVERSION

#define SCE_NET_IPVERSION   4

◆ SCE_NET_IP_RF

#define SCE_NET_IP_RF   0x8000

◆ SCE_NET_IP_DF

#define SCE_NET_IP_DF   0x4000

◆ SCE_NET_IP_MF

#define SCE_NET_IP_MF   0x2000

◆ SCE_NET_IP_OFFMASK

#define SCE_NET_IP_OFFMASK   0x1FFF

◆ SCE_NET_INADDR_ANY

#define SCE_NET_INADDR_ANY   0x00000000

◆ SCE_NET_INADDR_LOOPBACK

#define SCE_NET_INADDR_LOOPBACK   0x7F000001

◆ SCE_NET_INADDR_BROADCAST

#define SCE_NET_INADDR_BROADCAST   0xFFFFFFFF

◆ SCE_NET_INADDR_UNSPEC_GROUP

#define SCE_NET_INADDR_UNSPEC_GROUP   0xE0000000

◆ SCE_NET_INADDR_AUTOIP

#define SCE_NET_INADDR_AUTOIP   0xA9FE0000

◆ SCE_NET_IN_CLASSD_NET

#define SCE_NET_IN_CLASSD_NET   0xF0000000

◆ SCE_NET_IN_AUTOIP_NET

#define SCE_NET_IN_AUTOIP_NET   0xFFFF0000

◆ SCE_NET_ADHOC_PORT

#define SCE_NET_ADHOC_PORT   3658

◆ SCE_NET_AF_INET

#define SCE_NET_AF_INET   2

◆ SCE_NET_DEBUG_NAME_LEN_MAX

#define SCE_NET_DEBUG_NAME_LEN_MAX   31

◆ SCE_NET_ID_SOCKET_MIN

#define SCE_NET_ID_SOCKET_MIN   0

◆ SCE_NET_ID_SOCKET_MAX

#define SCE_NET_ID_SOCKET_MAX   1023

Typedef Documentation

◆ SceNetResolverFunctionAllocate

typedef void*(* SceNetResolverFunctionAllocate) (unsigned int size, int rid, const char *name, void *user)

◆ SceNetResolverFunctionFree

typedef void(* SceNetResolverFunctionFree) (void *ptr, int rid, const char *name, void *user)

Enumeration Type Documentation

◆ SceNetResolverErrorCode

Resolver specific error codes.

Enumerator
SCE_NET_RESOLVER_EINTERNAL 
SCE_NET_RESOLVER_EBUSY 
SCE_NET_RESOLVER_ENOSPACE 
SCE_NET_RESOLVER_EPACKET 
SCE_NET_RESOLVER_ERESERVED224 
SCE_NET_RESOLVER_ENODNS 
SCE_NET_RESOLVER_ETIMEDOUT 
SCE_NET_RESOLVER_ENOSUPPORT 
SCE_NET_RESOLVER_EFORMAT 
SCE_NET_RESOLVER_ESERVERFAILURE 
SCE_NET_RESOLVER_ENOHOST 
SCE_NET_RESOLVER_ENOTIMPLEMENTED 
SCE_NET_RESOLVER_ESERVERREFUSED 
SCE_NET_RESOLVER_ENORECORD 
SCE_NET_RESOLVER_EALIGNMENT 

◆ 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 

◆ SceNetEpollEventType

Events for SceNetEpollEvent.

Enumerator
SCE_NET_EPOLLIN 
SCE_NET_EPOLLOUT 
SCE_NET_EPOLLERR 
SCE_NET_EPOLLHUP 
SCE_NET_EPOLLDESCID 

◆ SceNetEpollControlFlag

Flags to specify as argument to sceNetEpollControl()

Enumerator
SCE_NET_EPOLL_CTL_ADD 
SCE_NET_EPOLL_CTL_MOD 
SCE_NET_EPOLL_CTL_DEL 

◆ SceNetEmulationFlag

Flags to specify as argument to sceNetEmulationGet() / sceNetEmulationSet()

Enumerator
SCE_NET_EMULATION_FLAG_ETH0 
SCE_NET_EMULATION_FLAG_WLAN0 

◆ SceNetResolverFlag

Flags to specify as argument to sceNetResolverStartNtoa() / sceNetResolverStartAton()

Enumerator
SCE_NET_RESOLVER_ASYNC 
SCE_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS 

◆ SceNetResolverAbortFlag

Flags to specify as argument to sceNetResolverAbort()

Enumerator
SCE_NET_RESOLVER_ABORT_FLAG_NTOA_PRESERVATION 
SCE_NET_RESOLVER_ABORT_FLAG_ATON_PRESERVATION 

◆ SceNetSocketAbortFlag

Flags to specify as argument to sceNetSocketAbort()

Enumerator
SCE_NET_SOCKET_ABORT_FLAG_RCV_PRESERVATION 
SCE_NET_SOCKET_ABORT_FLAG_SND_PRESERVATION 

◆ SceNetShutdownFlag

Flags to specify as argument to sceNetShutdown.

Enumerator
SCE_NET_SHUT_RD 
SCE_NET_SHUT_WR 
SCE_NET_SHUT_RDWR 

◆ SceNetErrorCode

Net Error Codes.

Enumerator
SCE_NET_ERROR_EPERM 
SCE_NET_ERROR_ENOENT 
SCE_NET_ERROR_ESRCH 
SCE_NET_ERROR_EINTR 
SCE_NET_ERROR_EIO 
SCE_NET_ERROR_ENXIO 
SCE_NET_ERROR_E2BIG 
SCE_NET_ERROR_ENOEXEC 
SCE_NET_ERROR_EBADF 
SCE_NET_ERROR_ECHILD 
SCE_NET_ERROR_EDEADLK 
SCE_NET_ERROR_ENOMEM 
SCE_NET_ERROR_EACCES 
SCE_NET_ERROR_EFAULT 
SCE_NET_ERROR_ENOTBLK 
SCE_NET_ERROR_EBUSY 
SCE_NET_ERROR_EEXIST 
SCE_NET_ERROR_EXDEV 
SCE_NET_ERROR_ENODEV 
SCE_NET_ERROR_ENOTDIR 
SCE_NET_ERROR_EISDIR 
SCE_NET_ERROR_EINVAL 
SCE_NET_ERROR_ENFILE 
SCE_NET_ERROR_EMFILE 
SCE_NET_ERROR_ENOTTY 
SCE_NET_ERROR_ETXTBSY 
SCE_NET_ERROR_EFBIG 
SCE_NET_ERROR_ENOSPC 
SCE_NET_ERROR_ESPIPE 
SCE_NET_ERROR_EROFS 
SCE_NET_ERROR_EMLINK 
SCE_NET_ERROR_EPIPE 
SCE_NET_ERROR_EDOM 
SCE_NET_ERROR_ERANGE 
SCE_NET_ERROR_EAGAIN 
SCE_NET_ERROR_EWOULDBLOCK 
SCE_NET_ERROR_EINPROGRESS 
SCE_NET_ERROR_EALREADY 
SCE_NET_ERROR_ENOTSOCK 
SCE_NET_ERROR_EDESTADDRREQ 
SCE_NET_ERROR_EMSGSIZE 
SCE_NET_ERROR_EPROTOTYPE 
SCE_NET_ERROR_ENOPROTOOPT 
SCE_NET_ERROR_EPROTONOSUPPORT 
SCE_NET_ERROR_ESOCKTNOSUPPORT 
SCE_NET_ERROR_EOPNOTSUPP 
SCE_NET_ERROR_EPFNOSUPPORT 
SCE_NET_ERROR_EAFNOSUPPORT 
SCE_NET_ERROR_EADDRINUSE 
SCE_NET_ERROR_EADDRNOTAVAIL 
SCE_NET_ERROR_ENETDOWN 
SCE_NET_ERROR_ENETUNREACH 
SCE_NET_ERROR_ENETRESET 
SCE_NET_ERROR_ECONNABORTED 
SCE_NET_ERROR_ECONNRESET 
SCE_NET_ERROR_ENOBUFS 
SCE_NET_ERROR_EISCONN 
SCE_NET_ERROR_ENOTCONN 
SCE_NET_ERROR_ESHUTDOWN 
SCE_NET_ERROR_ETOOMANYREFS 
SCE_NET_ERROR_ETIMEDOUT 
SCE_NET_ERROR_ECONNREFUSED 
SCE_NET_ERROR_ELOOP 
SCE_NET_ERROR_ENAMETOOLONG 
SCE_NET_ERROR_EHOSTDOWN 
SCE_NET_ERROR_EHOSTUNREACH 
SCE_NET_ERROR_ENOTEMPTY 
SCE_NET_ERROR_EPROCLIM 
SCE_NET_ERROR_EUSERS 
SCE_NET_ERROR_EDQUOT 
SCE_NET_ERROR_ESTALE 
SCE_NET_ERROR_EREMOTE 
SCE_NET_ERROR_EBADRPC 
SCE_NET_ERROR_ERPCMISMATCH 
SCE_NET_ERROR_EPROGUNAVAIL 
SCE_NET_ERROR_EPROGMISMATCH 
SCE_NET_ERROR_EPROCUNAVAIL 
SCE_NET_ERROR_ENOLCK 
SCE_NET_ERROR_ENOSYS 
SCE_NET_ERROR_EFTYPE 
SCE_NET_ERROR_EAUTH 
SCE_NET_ERROR_ENEEDAUTH 
SCE_NET_ERROR_EIDRM 
SCE_NET_ERROR_ENOMS 
SCE_NET_ERROR_EOVERFLOW 
SCE_NET_ERROR_EILSEQ 
SCE_NET_ERROR_ENOTSUP 
SCE_NET_ERROR_ECANCELED 
SCE_NET_ERROR_EBADMSG 
SCE_NET_ERROR_ENODATA 
SCE_NET_ERROR_ENOSR 
SCE_NET_ERROR_ENOSTR 
SCE_NET_ERROR_ETIME 
SCE_NET_ERROR_EADHOC 
SCE_NET_ERROR_EDISABLEDIF 
SCE_NET_ERROR_ERESUME 
SCE_NET_ERROR_ENOTINIT 
SCE_NET_ERROR_ENOLIBMEM 
SCE_NET_ERROR_ERESERVED202 
SCE_NET_ERROR_ECALLBACK 
SCE_NET_ERROR_EINTERNAL 
SCE_NET_ERROR_ERETURN 
SCE_NET_ERROR_RESOLVER_EINTERNAL 
SCE_NET_ERROR_RESOLVER_EBUSY 
SCE_NET_ERROR_RESOLVER_ENOSPACE 
SCE_NET_ERROR_RESOLVER_EPACKET 
SCE_NET_ERROR_RESOLVER_ERESERVED22 
SCE_NET_ERROR_RESOLVER_ENODNS 
SCE_NET_ERROR_RESOLVER_ETIMEDOUT 
SCE_NET_ERROR_RESOLVER_ENOSUPPORT 
SCE_NET_ERROR_RESOLVER_EFORMAT 
SCE_NET_ERROR_RESOLVER_ESERVERFAILURE 
SCE_NET_ERROR_RESOLVER_ENOHOST 
SCE_NET_ERROR_RESOLVER_ENOTIMPLEMENTED 
SCE_NET_ERROR_RESOLVER_ESERVERREFUSED 
SCE_NET_ERROR_RESOLVER_ENORECORD 
SCE_NET_ERROR_RESOLVER_EALIGNMENT 

◆ SceNetKernelErrorCode

Specific kernel and libnet error codes.

Enumerator
SCE_NET_EPERM 
SCE_NET_ENOENT 
SCE_NET_ESRCH 
SCE_NET_EINTR 
SCE_NET_EIO 
SCE_NET_ENXIO 
SCE_NET_E2BIG 
SCE_NET_ENOEXEC 
SCE_NET_EBADF 
SCE_NET_ECHILD 
SCE_NET_EDEADLK 
SCE_NET_ENOMEM 
SCE_NET_EACCES 
SCE_NET_EFAULT 
SCE_NET_ENOTBLK 
SCE_NET_EBUSY 
SCE_NET_EEXIST 
SCE_NET_EXDEV 
SCE_NET_ENODEV 
SCE_NET_ENOTDIR 
SCE_NET_EISDIR 
SCE_NET_EINVAL 
SCE_NET_ENFILE 
SCE_NET_EMFILE 
SCE_NET_ENOTTY 
SCE_NET_ETXTBSY 
SCE_NET_EFBIG 
SCE_NET_ENOSPC 
SCE_NET_ESPIPE 
SCE_NET_EROFS 
SCE_NET_EMLINK 
SCE_NET_EPIPE 
SCE_NET_EDOM 
SCE_NET_ERANGE 
SCE_NET_EAGAIN 
SCE_NET_EWOULDBLOCK 
SCE_NET_EINPROGRESS 
SCE_NET_EALREADY 
SCE_NET_ENOTSOCK 
SCE_NET_EDESTADDRREQ 
SCE_NET_EMSGSIZE 
SCE_NET_EPROTOTYPE 
SCE_NET_ENOPROTOOPT 
SCE_NET_EPROTONOSUPPORT 
SCE_NET_ESOCKTNOSUPPORT 
SCE_NET_EOPNOTSUPP 
SCE_NET_EPFNOSUPPORT 
SCE_NET_EAFNOSUPPORT 
SCE_NET_EADDRINUSE 
SCE_NET_EADDRNOTAVAIL 
SCE_NET_ENETDOWN 
SCE_NET_ENETUNREACH 
SCE_NET_ENETRESET 
SCE_NET_ECONNABORTED 
SCE_NET_ECONNRESET 
SCE_NET_ENOBUFS 
SCE_NET_EISCONN 
SCE_NET_ENOTCONN 
SCE_NET_ESHUTDOWN 
SCE_NET_ETOOMANYREFS 
SCE_NET_ETIMEDOUT 
SCE_NET_ECONNREFUSED 
SCE_NET_ELOOP 
SCE_NET_ENAMETOOLONG 
SCE_NET_EHOSTDOWN 
SCE_NET_EHOSTUNREACH 
SCE_NET_ENOTEMPTY 
SCE_NET_EPROCLIM 
SCE_NET_EUSERS 
SCE_NET_EDQUOT 
SCE_NET_ESTALE 
SCE_NET_EREMOTE 
SCE_NET_EBADRPC 
SCE_NET_ERPCMISMATCH 
SCE_NET_EPROGUNAVAIL 
SCE_NET_EPROGMISMATCH 
SCE_NET_EPROCUNAVAIL 
SCE_NET_ENOLCK 
SCE_NET_ENOSYS 
SCE_NET_EFTYPE 
SCE_NET_EAUTH 
SCE_NET_ENEEDAUTH 
SCE_NET_EIDRM 
SCE_NET_ENOMSG 
SCE_NET_EOVERFLOW 
SCE_NET_EILSEQ 
SCE_NET_ENOTSUP 
SCE_NET_ECANCELED 
SCE_NET_EBADMSG 
SCE_NET_ENODATA 
SCE_NET_ENOSR 
SCE_NET_ENOSTR 
SCE_NET_ETIME 
SCE_NET_EADHOC 
SCE_NET_EDISABLEDIF 
SCE_NET_ERESUME 

◆ SceNetLibnetErrorCode

libnet specific error codes

Enumerator
SCE_NET_ENOTINIT 
SCE_NET_ENOLIBMEM 
SCE_NET_ETLS 
SCE_NET_ECALLBACK 
SCE_NET_EINTERNAL 
SCE_NET_ERETURN 

◆ SceNetSockInfoState

state for SceNetSockInfo structure

Enumerator
SCE_NET_SOCKINFO_STATE_UNKNOWN 
SCE_NET_SOCKINFO_STATE_CLOSED 
SCE_NET_SOCKINFO_STATE_OPENED 
SCE_NET_SOCKINFO_STATE_LISTEN 
SCE_NET_SOCKINFO_STATE_SYN_SENT 
SCE_NET_SOCKINFO_STATE_SYN_RECEIVED 
SCE_NET_SOCKINFO_STATE_ESTABLISHED 
SCE_NET_SOCKINFO_STATE_FIN_WAIT_1 
SCE_NET_SOCKINFO_STATE_FIN_WAIT_2 
SCE_NET_SOCKINFO_STATE_CLOSE_WAIT 
SCE_NET_SOCKINFO_STATE_CLOSING 
SCE_NET_SOCKINFO_STATE_LAST_ACK 
SCE_NET_SOCKINFO_STATE_TIME_WAIT 

◆ SceNetSockInfoFlag

flags for SceNetSockInfo structure

Enumerator
SCE_NET_SOCKINFO_F_SELF 
SCE_NET_SOCKINFO_F_KERNEL 
SCE_NET_SOCKINFO_F_OTHERS 
SCE_NET_SOCKINFO_F_RECV_WAIT 
SCE_NET_SOCKINFO_F_SEND_WAIT 
SCE_NET_SOCKINFO_F_RECV_EWAIT 
SCE_NET_SOCKINFO_F_SEND_EWAIT 
SCE_NET_SOCKINFO_F_WAKEUP_SIGNAL 
SCE_NET_SOCKINFO_F_ALL 

◆ SceNetProtocol

Net Protocols.

Enumerator
SCE_NET_IPPROTO_IP 
SCE_NET_IPPROTO_ICMP 
SCE_NET_IPPROTO_IGMP 
SCE_NET_IPPROTO_TCP 
SCE_NET_IPPROTO_UDP 
SCE_NET_SOL_SOCKET 

◆ SceNetSocketOption

Socket Options.

Enumerator
SCE_NET_IP_HDRINCL 
SCE_NET_IP_TOS 
SCE_NET_IP_TTL 
SCE_NET_IP_MULTICAST_IF 
SCE_NET_IP_MULTICAST_TTL 
SCE_NET_IP_MULTICAST_LOOP 
SCE_NET_IP_ADD_MEMBERSHIP 
SCE_NET_IP_DROP_MEMBERSHIP 
SCE_NET_IP_TTLCHK 
SCE_NET_IP_MAXTTL 
SCE_NET_TCP_NODELAY 
SCE_NET_TCP_MAXSEG 
SCE_NET_TCP_MSS_TO_ADVERTISE 
SCE_NET_SO_REUSEADDR 
SCE_NET_SO_KEEPALIVE 
SCE_NET_SO_BROADCAST 
SCE_NET_SO_LINGER 
SCE_NET_SO_OOBINLINE 
SCE_NET_SO_REUSEPORT 
SCE_NET_SO_ONESBCAST 
SCE_NET_SO_USECRYPTO 
SCE_NET_SO_USESIGNATURE 
SCE_NET_SO_SNDBUF 
SCE_NET_SO_RCVBUF 
SCE_NET_SO_SNDLOWAT 
SCE_NET_SO_RCVLOWAT 
SCE_NET_SO_SNDTIMEO 
SCE_NET_SO_RCVTIMEO 
SCE_NET_SO_ERROR 
SCE_NET_SO_TYPE 
SCE_NET_SO_NBIO 
SCE_NET_SO_TPPOLICY 
SCE_NET_SO_NAME 

◆ SceNetSocketType

Socket types.

Enumerator
SCE_NET_SOCK_STREAM 
SCE_NET_SOCK_DGRAM 
SCE_NET_SOCK_RAW 
SCE_NET_SOCK_DGRAM_P2P 
SCE_NET_SOCK_STREAM_P2P 

◆ SceNetMsgFlag

MSG Flags.

Enumerator
SCE_NET_MSG_PEEK 
SCE_NET_MSG_WAITALL 
SCE_NET_MSG_DONTWAIT 
SCE_NET_MSG_USECRYPTO 
SCE_NET_MSG_USESIGNATURE 

◆ SceNetIcmpType

Types to specify to SceNetIcmpHeader structure.

Enumerator
SCE_NET_ICMP_TYPE_ECHO_REPLY 
SCE_NET_ICMP_TYPE_DEST_UNREACH 
SCE_NET_ICMP_TYPE_SOURCE_QUENCH 
SCE_NET_ICMP_TYPE_REDIRECT 
SCE_NET_ICMP_TYPE_ECHO_REQUEST 
SCE_NET_ICMP_TYPE_TIME_EXCEEDED 
SCE_NET_ICMP_TYPE_PARAMETER_PROBLEM 
SCE_NET_ICMP_TYPE_TIMESTAMP_REQUEST 
SCE_NET_ICMP_TYPE_TIMESTAMP_REPLY 
SCE_NET_ICMP_TYPE_INFORMATION_REQUEST 
SCE_NET_ICMP_TYPE_INFORMATION_REPLY 
SCE_NET_ICMP_TYPE_ADDRESS_MASK_REQUEST 
SCE_NET_ICMP_TYPE_ADDRESS_MASK_REPLY 

◆ SceNetIcmpCode

Codes to specify to SceNetIcmpHeader structure.

Enumerator
SCE_NET_ICMP_CODE_DEST_UNREACH_NET_UNREACH 
SCE_NET_ICMP_CODE_DEST_UNREACH_HOST_UNREACH 
SCE_NET_ICMP_CODE_DEST_UNREACH_PROTO_UNREACH 
SCE_NET_ICMP_CODE_DEST_UNREACH_PORT_UNREACH 
SCE_NET_ICMP_CODE_DEST_UNREACH_FRAG_AND_DF 
SCE_NET_ICMP_CODE_DEST_UNREACH_SRC_HOST_FAILED 
SCE_NET_ICMP_CODE_DEST_UNREACH_DST_NET_UNKNOWN 
SCE_NET_ICMP_CODE_DEST_UNREACH_DST_HOST_UNKNOWN 
SCE_NET_ICMP_CODE_DEST_UNREACH_SRC_HOST_ISOLATED 
SCE_NET_ICMP_CODE_DEST_UNREACH_NET_ADMIN_PROHIBITED 
SCE_NET_ICMP_CODE_DEST_UNREACH_NET_HOST_PROHIBITED 
SCE_NET_ICMP_CODE_DEST_UNREACH_NET_TOS 
SCE_NET_ICMP_CODE_DEST_UNREACH_HOST_TOS 
SCE_NET_ICMP_CODE_TIME_EXCEEDED_TTL_EXCEEDED 
SCE_NET_ICMP_CODE_TIME_EXCEEDED_FRT_EXCEEDED 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/27]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceNetInitParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/27]

VITASDK_BUILD_ASSERT_EQ ( 0xE0  ,
SceNetEmulationData   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/27]

VITASDK_BUILD_ASSERT_EQ ( 0x200  ,
SceNetEmulationParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetEpollDataExt   
)

◆ VITASDK_BUILD_ASSERT_EQ() [5/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetEpollData   
)

◆ VITASDK_BUILD_ASSERT_EQ() [6/27]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceNetEpollSystemData   
)

◆ VITASDK_BUILD_ASSERT_EQ() [7/27]

VITASDK_BUILD_ASSERT_EQ ( 0x20  ,
SceNetEpollEvent   
)

◆ VITASDK_BUILD_ASSERT_EQ() [8/27]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceNetResolverParam   
)

◆ sceNetInit()

int sceNetInit ( SceNetInitParam param)

◆ sceNetTerm()

int sceNetTerm ( void  )

◆ sceNetShowIfconfig()

int sceNetShowIfconfig ( void *  p,
int  b 
)

◆ sceNetShowRoute()

int sceNetShowRoute ( void  )

◆ sceNetShowNetstat()

int sceNetShowNetstat ( void  )

◆ sceNetEmulationSet()

int sceNetEmulationSet ( SceNetEmulationParam param,
int  flags 
)

◆ sceNetEmulationGet()

int sceNetEmulationGet ( SceNetEmulationParam param,
int  flags 
)

◆ sceNetResolverCreate()

int sceNetResolverCreate ( const char *  name,
SceNetResolverParam param,
int  flags 
)

◆ sceNetResolverStartNtoa()

int sceNetResolverStartNtoa ( int  rid,
const char *  hostname,
SceNetInAddr addr,
int  timeout,
int  retry,
int  flags 
)

◆ sceNetResolverStartAton()

int sceNetResolverStartAton ( int  rid,
const SceNetInAddr addr,
char *  hostname,
int  len,
int  timeout,
int  retry,
int  flags 
)

◆ sceNetResolverGetError()

int sceNetResolverGetError ( int  rid,
int *  result 
)

◆ sceNetResolverDestroy()

int sceNetResolverDestroy ( int  rid)

◆ sceNetResolverAbort()

int sceNetResolverAbort ( int  rid,
int  flags 
)

◆ sceNetDumpCreate()

int sceNetDumpCreate ( const char *  name,
int  len,
int  flags 
)

◆ sceNetDumpRead()

int sceNetDumpRead ( int  id,
void *  buf,
int  len,
int *  pflags 
)

◆ sceNetDumpDestroy()

int sceNetDumpDestroy ( int  id)

◆ sceNetDumpAbort()

int sceNetDumpAbort ( int  id,
int  flags 
)

◆ sceNetEpollCreate()

int sceNetEpollCreate ( const char *  name,
int  flags 
)

◆ sceNetEpollControl()

int sceNetEpollControl ( int  eid,
int  op,
int  id,
SceNetEpollEvent event 
)

◆ sceNetEpollWait()

int sceNetEpollWait ( int  eid,
SceNetEpollEvent events,
int  maxevents,
int  timeout 
)

◆ sceNetEpollWaitCB()

int sceNetEpollWaitCB ( int  eid,
SceNetEpollEvent events,
int  maxevents,
int  timeout 
)

◆ sceNetEpollDestroy()

int sceNetEpollDestroy ( int  eid)

◆ sceNetEpollAbort()

int sceNetEpollAbort ( int  eid,
int  flags 
)

◆ sceNetEtherStrton()

int sceNetEtherStrton ( const char *  str,
SceNetEtherAddr n 
)

◆ sceNetEtherNtostr()

int sceNetEtherNtostr ( const SceNetEtherAddr n,
char *  str,
unsigned int  len 
)

◆ sceNetGetMacAddress()

int sceNetGetMacAddress ( SceNetEtherAddr addr,
int  flags 
)

◆ sceNetSocket()

int sceNetSocket ( const char *  name,
int  domain,
int  type,
int  protocol 
)

◆ sceNetAccept()

int sceNetAccept ( int  s,
SceNetSockaddr addr,
unsigned int *  addrlen 
)

◆ sceNetBind()

int sceNetBind ( int  s,
const SceNetSockaddr addr,
unsigned int  addrlen 
)

◆ sceNetConnect()

int sceNetConnect ( int  s,
const SceNetSockaddr name,
unsigned int  namelen 
)

◆ sceNetGetpeername()

int sceNetGetpeername ( int  s,
SceNetSockaddr name,
unsigned int *  namelen 
)

◆ sceNetGetsockname()

int sceNetGetsockname ( int  s,
SceNetSockaddr name,
unsigned int *  namelen 
)

◆ sceNetGetsockopt()

int sceNetGetsockopt ( int  s,
int  level,
int  optname,
void *  optval,
unsigned int *  optlen 
)

◆ sceNetListen()

int sceNetListen ( int  s,
int  backlog 
)

◆ sceNetRecv()

int sceNetRecv ( int  s,
void *  buf,
unsigned int  len,
int  flags 
)

◆ sceNetRecvfrom()

int sceNetRecvfrom ( int  s,
void *  buf,
unsigned int  len,
int  flags,
SceNetSockaddr from,
unsigned int *  fromlen 
)

◆ sceNetRecvmsg()

int sceNetRecvmsg ( int  s,
SceNetMsghdr msg,
int  flags 
)

◆ sceNetSend()

int sceNetSend ( int  s,
const void *  msg,
unsigned int  len,
int  flags 
)

◆ sceNetSendto()

int sceNetSendto ( int  s,
const void *  msg,
unsigned int  len,
int  flags,
const SceNetSockaddr to,
unsigned int  tolen 
)

◆ sceNetSendmsg()

int sceNetSendmsg ( int  s,
const SceNetMsghdr msg,
int  flags 
)

◆ sceNetSetsockopt()

int sceNetSetsockopt ( int  s,
int  level,
int  optname,
const void *  optval,
unsigned int  optlen 
)

◆ sceNetShutdown()

int sceNetShutdown ( int  s,
int  how 
)

◆ sceNetSocketClose()

int sceNetSocketClose ( int  s)

◆ sceNetSocketAbort()

int sceNetSocketAbort ( int  s,
int  flags 
)

◆ sceNetGetSockInfo()

int sceNetGetSockInfo ( int  s,
SceNetSockInfo info,
int  n,
int  flags 
)

◆ sceNetGetSockIdInfo()

int sceNetGetSockIdInfo ( SceNetFdSet fds,
int  sockinfoflags,
int  flags 
)

◆ sceNetGetStatisticsInfo()

int sceNetGetStatisticsInfo ( SceNetStatisticsInfo info,
int  flags 
)

◆ sceNetSetDnsInfo()

int sceNetSetDnsInfo ( SceNetDnsInfo info,
int  flags 
)

◆ sceNetClearDnsCache()

int sceNetClearDnsCache ( int  flags)

◆ sceNetInetNtop()

const char* sceNetInetNtop ( int  af,
const void *  src,
char *  dst,
unsigned int  size 
)

◆ sceNetInetPton()

int sceNetInetPton ( int  af,
const char *  src,
void *  dst 
)

◆ sceNetHtonll()

long long unsigned int sceNetHtonll ( unsigned long long int  host64)

◆ sceNetHtonl()

unsigned int sceNetHtonl ( unsigned int  host32)

◆ sceNetHtons()

unsigned short int sceNetHtons ( unsigned short int  host16)

◆ sceNetNtohll()

unsigned long long int sceNetNtohll ( unsigned long long int  net64)

◆ sceNetNtohl()

unsigned int sceNetNtohl ( unsigned int  net32)

◆ sceNetNtohs()

unsigned short int sceNetNtohs ( unsigned short int  net16)

◆ sceNetErrnoLoc()

int* sceNetErrnoLoc ( void  )

Get pointer to last network errno.

Returns
pointer to int.

◆ VITASDK_BUILD_ASSERT_EQ() [9/27]

VITASDK_BUILD_ASSERT_EQ ( 0x80  ,
SceNetFdSet   
)

◆ VITASDK_BUILD_ASSERT_EQ() [10/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetInAddr   
)

◆ VITASDK_BUILD_ASSERT_EQ() [11/27]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceNetSockaddrIn   
)

◆ VITASDK_BUILD_ASSERT_EQ() [12/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIpMreq   
)

◆ VITASDK_BUILD_ASSERT_EQ() [13/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetEtherAddr   
)

◆ VITASDK_BUILD_ASSERT_EQ() [14/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetDnsInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [15/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetLinger   
)

◆ VITASDK_BUILD_ASSERT_EQ() [16/27]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceNetSockaddr   
)

◆ VITASDK_BUILD_ASSERT_EQ() [17/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIovec   
)

◆ VITASDK_BUILD_ASSERT_EQ() [18/27]

VITASDK_BUILD_ASSERT_EQ ( 0x1C  ,
SceNetMsghdr   
)

◆ VITASDK_BUILD_ASSERT_EQ() [19/27]

VITASDK_BUILD_ASSERT_EQ ( 0x6C  ,
SceNetSockInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [20/27]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceNetStatisticsInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [21/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIpHeaderIpVerHl   
)

◆ VITASDK_BUILD_ASSERT_EQ() [22/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIpHeaderUnion   
)

◆ VITASDK_BUILD_ASSERT_EQ() [23/27]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceNetIpHeader   
)

◆ VITASDK_BUILD_ASSERT_EQ() [24/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIcmpHeaderEcho   
)

◆ VITASDK_BUILD_ASSERT_EQ() [25/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIcmpHeaderFrag   
)

◆ VITASDK_BUILD_ASSERT_EQ() [26/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIcmpHeaderUnion   
)

◆ VITASDK_BUILD_ASSERT_EQ() [27/27]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetIcmpHeader   
)