vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceNetPsForSyscalls_stub




Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceNetPsForDriver_stub



Functions

int sceNetSyscallAccept (int s, void *addr, void *addrlen)
 
int sceNetSyscallBind (int s, const void *addr, int addrlen)
 
int sceNetSyscallClose (int s)
 
int sceNetSyscallConnect (int s, const void *name, int namelen)
 
int sceNetSyscallControl (int if_index, int code, void *ptr, int len)
 
int sceNetSyscallDescriptorClose (int id)
 
int sceNetSyscallDescriptorCreate (const char *name, int flags)
 
int sceNetSyscallDescriptorCtl (int id, int op, int s, void *info)
 
int sceNetSyscallDumpAbort (int id, int flags)
 
int sceNetSyscallDumpClose (int id)
 
int sceNetSyscallDumpCreate (const char *name, int len, int flags)
 
int sceNetSyscallDumpRead (int id, void *buf, int len, void *pflags)
 
int sceNetSyscallEpollAbort (int eid, int flags)
 
int sceNetSyscallEpollClose (int eid)
 
int sceNetSyscallEpollCreate (const char *name, int flags)
 
int sceNetSyscallEpollCtl (int eid, int op, int id, void *event)
 
int sceNetSyscallEpollWait (SceNetSyscallParameter *param)
 
int sceNetSyscallGetIfList (void *list, int n)
 Get net if list. More...
 
int sceNetSyscallGetSockinfo (int s, void *ptr, int n, int flags)
 
int sceNetSyscallGetpeername (int s, void *name, void *namelen)
 
int sceNetSyscallGetsockname (int s, void *name, void *namelen)
 
int sceNetSyscallGetsockopt (SceNetSyscallParameter *param)
 
int sceNetSyscallIcmConnect (int s, int flags)
 
int sceNetSyscallIoctl (int s, unsigned int com, void *data)
 
int sceNetSyscallListen (int s, int backlog)
 
int sceNetSyscallRecvfrom (SceNetSyscallParameter *param)
 
int sceNetSyscallRecvmsg (int s, void *msg, int flags)
 
int sceNetSyscallSendmsg (int s, const void *msg, int flags)
 
int sceNetSyscallSendto (SceNetSyscallParameter *param)
 
int sceNetSyscallSetsockopt (SceNetSyscallParameter *param)
 
int sceNetSyscallShutdown (int s, int how)
 
int sceNetSyscallSocket (const char *name, int domain, int type, int protocol)
 
int sceNetSyscallSocketAbort (int s, int flags)
 
int sceNetSyscallSysctl (SceNetSyscallParameter *param)
 
int ksceNetSocket (const char *name, int domain, int type, int protocol)
 
int ksceNetAccept (int s, SceNetSockaddr *addr, unsigned int *addrlen)
 
int ksceNetBind (int s, const SceNetSockaddr *addr, unsigned int addrlen)
 
int ksceNetConnect (int s, const SceNetSockaddr *name, unsigned int namelen)
 
int ksceNetListen (int s, int backlog)
 
int ksceNetRecvfrom (int s, void *buf, unsigned int len, int flags, SceNetSockaddr *from, unsigned int *fromlen)
 
int ksceNetSendto (int s, const void *msg, unsigned int len, int flags, const SceNetSockaddr *to, unsigned int tolen)
 
int ksceNetSetsockopt (int s, int level, int optname, const void *optval, unsigned int optlen)
 
int ksceNetClose (int s)
 

Typedefs

typedef struct SceNetSyscallParameter SceNetSyscallParameter
 

Macros

#define ksceNetRecv(s, buf, len, flags)   ksceNetRecvfrom(s, buf, len, flags, NULL, 0)
 
#define ksceNetSend(s, msg, len, flags)   ksceNetSendto(s, msg, len, flags, NULL, 0)
 
#define ksceNetSocketClose   ksceNetClose
 
#define ksceNetHtons   __builtin_bswap16
 
#define ksceNetHtonl   __builtin_bswap32
 

Macro Definition Documentation

◆ ksceNetRecv

#define ksceNetRecv (   s,
  buf,
  len,
  flags 
)    ksceNetRecvfrom(s, buf, len, flags, NULL, 0)

◆ ksceNetSend

#define ksceNetSend (   s,
  msg,
  len,
  flags 
)    ksceNetSendto(s, msg, len, flags, NULL, 0)

◆ ksceNetSocketClose

#define ksceNetSocketClose   ksceNetClose

◆ ksceNetHtons

#define ksceNetHtons   __builtin_bswap16

◆ ksceNetHtonl

#define ksceNetHtonl   __builtin_bswap32

Typedef Documentation

◆ SceNetSyscallParameter

Function Documentation

◆ sceNetSyscallAccept()

int sceNetSyscallAccept ( int  s,
void *  addr,
void *  addrlen 
)

◆ sceNetSyscallBind()

int sceNetSyscallBind ( int  s,
const void *  addr,
int  addrlen 
)

◆ sceNetSyscallClose()

int sceNetSyscallClose ( int  s)

◆ sceNetSyscallConnect()

int sceNetSyscallConnect ( int  s,
const void *  name,
int  namelen 
)

◆ sceNetSyscallControl()

int sceNetSyscallControl ( int  if_index,
int  code,
void *  ptr,
int  len 
)

◆ sceNetSyscallDescriptorClose()

int sceNetSyscallDescriptorClose ( int  id)

◆ sceNetSyscallDescriptorCreate()

int sceNetSyscallDescriptorCreate ( const char *  name,
int  flags 
)

◆ sceNetSyscallDescriptorCtl()

int sceNetSyscallDescriptorCtl ( int  id,
int  op,
int  s,
void *  info 
)

◆ sceNetSyscallDumpAbort()

int sceNetSyscallDumpAbort ( int  id,
int  flags 
)

◆ sceNetSyscallDumpClose()

int sceNetSyscallDumpClose ( int  id)

◆ sceNetSyscallDumpCreate()

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

◆ sceNetSyscallDumpRead()

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

◆ sceNetSyscallEpollAbort()

int sceNetSyscallEpollAbort ( int  eid,
int  flags 
)

◆ sceNetSyscallEpollClose()

int sceNetSyscallEpollClose ( int  eid)

◆ sceNetSyscallEpollCreate()

int sceNetSyscallEpollCreate ( const char *  name,
int  flags 
)

◆ sceNetSyscallEpollCtl()

int sceNetSyscallEpollCtl ( int  eid,
int  op,
int  id,
void *  event 
)

◆ sceNetSyscallEpollWait()

int sceNetSyscallEpollWait ( SceNetSyscallParameter param)

◆ sceNetSyscallGetIfList()

int sceNetSyscallGetIfList ( void *  list,
int  n 
)

Get net if list.

Parameters
[out]list- The output buffer list. size is (0x140 * n)
[in]n- The output size number.
Returns
0 on success, < 0 on error.

◆ sceNetSyscallGetSockinfo()

int sceNetSyscallGetSockinfo ( int  s,
void *  ptr,
int  n,
int  flags 
)

◆ sceNetSyscallGetpeername()

int sceNetSyscallGetpeername ( int  s,
void *  name,
void *  namelen 
)

◆ sceNetSyscallGetsockname()

int sceNetSyscallGetsockname ( int  s,
void *  name,
void *  namelen 
)

◆ sceNetSyscallGetsockopt()

int sceNetSyscallGetsockopt ( SceNetSyscallParameter param)

◆ sceNetSyscallIcmConnect()

int sceNetSyscallIcmConnect ( int  s,
int  flags 
)

◆ sceNetSyscallIoctl()

int sceNetSyscallIoctl ( int  s,
unsigned int  com,
void *  data 
)

◆ sceNetSyscallListen()

int sceNetSyscallListen ( int  s,
int  backlog 
)

◆ sceNetSyscallRecvfrom()

int sceNetSyscallRecvfrom ( SceNetSyscallParameter param)

◆ sceNetSyscallRecvmsg()

int sceNetSyscallRecvmsg ( int  s,
void *  msg,
int  flags 
)

◆ sceNetSyscallSendmsg()

int sceNetSyscallSendmsg ( int  s,
const void *  msg,
int  flags 
)

◆ sceNetSyscallSendto()

int sceNetSyscallSendto ( SceNetSyscallParameter param)

◆ sceNetSyscallSetsockopt()

int sceNetSyscallSetsockopt ( SceNetSyscallParameter param)

◆ sceNetSyscallShutdown()

int sceNetSyscallShutdown ( int  s,
int  how 
)

◆ sceNetSyscallSocket()

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

◆ sceNetSyscallSocketAbort()

int sceNetSyscallSocketAbort ( int  s,
int  flags 
)

◆ sceNetSyscallSysctl()

int sceNetSyscallSysctl ( SceNetSyscallParameter param)

◆ ksceNetSocket()

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

◆ ksceNetAccept()

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

◆ ksceNetBind()

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

◆ ksceNetConnect()

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

◆ ksceNetListen()

int ksceNetListen ( int  s,
int  backlog 
)

◆ ksceNetRecvfrom()

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

◆ ksceNetSendto()

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

◆ ksceNetSetsockopt()

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

◆ ksceNetClose()

int ksceNetClose ( int  s)