PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspnet_inet.h File Reference
#include <sys/socket.h>
#include <sys/select.h>
Include dependency graph for pspnet_inet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SceNetInetTimeval
 This struct is needed because tv_sec size is different from what newlib expect Newlib expects 64bits for seconds and PSP expects 32bits. More...
 

Functions

int sceNetInetInit (void)
 
int sceNetInetSelect (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct SceNetInetTimeval *timeout)
 
int sceNetInetTerm (void)
 
int sceNetInetGetErrno (void)
 
int sceNetInetAccept (int s, struct sockaddr *addr, socklen_t *addrlen)
 
int sceNetInetBind (int s, const struct sockaddr *my_addr, socklen_t addrlen)
 
int sceNetInetConnect (int s, const struct sockaddr *serv_addr, socklen_t addrlen)
 
int sceNetInetGetsockopt (int s, int level, int optname, void *optval, socklen_t *optlen)
 
int sceNetInetListen (int s, int backlog)
 
size_t sceNetInetRecv (int s, void *buf, size_t len, int flags)
 
size_t sceNetInetRecvfrom (int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen)
 
size_t sceNetInetSend (int s, const void *buf, size_t len, int flags)
 
size_t sceNetInetSendto (int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
 
int sceNetInetSetsockopt (int s, int level, int optname, const void *optval, socklen_t optlen)
 
int sceNetInetShutdown (int s, int how)
 
int sceNetInetSocket (int domain, int type, int protocol)
 
int sceNetInetClose (int s)
 
int sceNetInetGetpeername (int s, struct sockaddr *name, socklen_t *namelen)
 
int sceNetInetGetsockname (int s, struct sockaddr *name, socklen_t *namelen)
 
ssize_t sceNetInetSendmsg (int s, const struct msghdr *msg, int flags)
 
ssize_t sceNetInetRecvmsg (int s, struct msghdr *msg, int flags)
 

Function Documentation

◆ sceNetInetAccept()

int sceNetInetAccept ( int  s,
struct sockaddr addr,
socklen_t addrlen 
)

◆ sceNetInetBind()

int sceNetInetBind ( int  s,
const struct sockaddr my_addr,
socklen_t  addrlen 
)

◆ sceNetInetClose()

int sceNetInetClose ( int  s)

◆ sceNetInetConnect()

int sceNetInetConnect ( int  s,
const struct sockaddr serv_addr,
socklen_t  addrlen 
)

◆ sceNetInetGetErrno()

int sceNetInetGetErrno ( void  )

◆ sceNetInetGetpeername()

int sceNetInetGetpeername ( int  s,
struct sockaddr name,
socklen_t namelen 
)

◆ sceNetInetGetsockname()

int sceNetInetGetsockname ( int  s,
struct sockaddr name,
socklen_t namelen 
)

◆ sceNetInetGetsockopt()

int sceNetInetGetsockopt ( int  s,
int  level,
int  optname,
void optval,
socklen_t optlen 
)

◆ sceNetInetInit()

int sceNetInetInit ( void  )

◆ sceNetInetListen()

int sceNetInetListen ( int  s,
int  backlog 
)

◆ sceNetInetRecv()

size_t sceNetInetRecv ( int  s,
void buf,
size_t  len,
int  flags 
)

◆ sceNetInetRecvfrom()

size_t sceNetInetRecvfrom ( int  s,
void buf,
size_t  flags,
int  ,
struct sockaddr from,
socklen_t fromlen 
)

◆ sceNetInetRecvmsg()

ssize_t sceNetInetRecvmsg ( int  s,
struct msghdr msg,
int  flags 
)

◆ sceNetInetSelect()

int sceNetInetSelect ( int  n,
fd_set readfds,
fd_set writefds,
fd_set exceptfds,
struct SceNetInetTimeval timeout 
)

◆ sceNetInetSend()

size_t sceNetInetSend ( int  s,
const void buf,
size_t  len,
int  flags 
)

◆ sceNetInetSendmsg()

ssize_t sceNetInetSendmsg ( int  s,
const struct msghdr msg,
int  flags 
)

◆ sceNetInetSendto()

size_t sceNetInetSendto ( int  s,
const void buf,
size_t  len,
int  flags,
const struct sockaddr to,
socklen_t  tolen 
)

◆ sceNetInetSetsockopt()

int sceNetInetSetsockopt ( int  s,
int  level,
int  optname,
const void optval,
socklen_t  optlen 
)

◆ sceNetInetShutdown()

int sceNetInetShutdown ( int  s,
int  how 
)

◆ sceNetInetSocket()

int sceNetInetSocket ( int  domain,
int  type,
int  protocol 
)

◆ sceNetInetTerm()

int sceNetInetTerm ( void  )