wut  v1.7.0
Wii U Toolchain
Data Structures | Macros | Typedefs | Functions
Socket
Collaboration diagram for Socket:

Data Structures

struct  nsysnet_fd_set
 
struct  nsysnet_timeval
 

Macros

#define NSYSNET_FD_SETSIZE   32
 
#define NSYSNET_FD_SET(n, p)   ((p)->fds_bits |= (1L << (n)))
 
#define NSYSNET_FD_CLR(n, p)   ((p)->fds_bits &= ~(1L << (n)))
 
#define NSYSNET_FD_ISSET(n, p)   ((p)->fds_bits & (1L << (n)))
 
#define NSYSNET_FD_ZERO(p)   ((p)->fds_bits = 0L)
 

Typedefs

typedef uint32_t nsysnet_fd_mask
 
typedef struct nsysnet_fd_set nsysnet_fd_set
 

Functions

void socket_lib_init ()
 
void socket_lib_finish ()
 
int RPLWRAP() accept (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int RPLWRAP() bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen)
 
int RPLWRAP() socketclose (int sockfd)
 
int RPLWRAP() connect (int sockfd, const struct sockaddr *addr, socklen_t addrlen)
 
int RPLWRAP() getpeername (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int RPLWRAP() getsockname (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int RPLWRAP() getsockopt (int sockfd, int level, int optname, void *optval, socklen_t *optlen)
 
int RPLWRAP() listen (int sockfd, int backlog)
 
int RPLWRAP() recv (int sockfd, void *buf, size_t len, int flags)
 
int RPLWRAP() recvfrom (int sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
 
int RPLWRAP() send (int sockfd, const void *buf, size_t len, int flags)
 
int RPLWRAP() sendto (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
 
int RPLWRAP() setsockopt (int sockfd, int level, int optname, const void *optval, socklen_t optlen)
 
int RPLWRAP() shutdown (int sockfd, int how)
 
int RPLWRAP() socket (int domain, int type, int protocol)
 
int RPLWRAP() select (int nfds, nsysnet_fd_set *readfds, nsysnet_fd_set *writefds, nsysnet_fd_set *exceptfds, struct nsysnet_timeval *timeout)
 
const char *RPLWRAP() inet_ntop (int af, const void *src, char *dst, socklen_t size)
 
int RPLWRAP() inet_pton (int af, const char *src, void *dst)
 
int RPLWRAP() socketlasterr ()
 

Detailed Description


Data Structure Documentation

◆ nsysnet_fd_set

struct nsysnet_fd_set

Definition at line 33 of file _socket.h.

Data Fields
nsysnet_fd_mask fds_bits

◆ nsysnet_timeval

struct nsysnet_timeval

Definition at line 38 of file _socket.h.

Data Fields
long tv_sec
long tv_usec

Macro Definition Documentation

◆ NSYSNET_FD_SETSIZE

#define NSYSNET_FD_SETSIZE   32

Definition at line 23 of file _socket.h.

◆ NSYSNET_FD_SET

#define NSYSNET_FD_SET (   n,
 
)    ((p)->fds_bits |= (1L << (n)))

Definition at line 25 of file _socket.h.

◆ NSYSNET_FD_CLR

#define NSYSNET_FD_CLR (   n,
 
)    ((p)->fds_bits &= ~(1L << (n)))

Definition at line 26 of file _socket.h.

◆ NSYSNET_FD_ISSET

#define NSYSNET_FD_ISSET (   n,
 
)    ((p)->fds_bits & (1L << (n)))

Definition at line 27 of file _socket.h.

◆ NSYSNET_FD_ZERO

#define NSYSNET_FD_ZERO (   p)    ((p)->fds_bits = 0L)

Definition at line 28 of file _socket.h.

Typedef Documentation

◆ nsysnet_fd_mask

typedef uint32_t nsysnet_fd_mask

Definition at line 30 of file _socket.h.

◆ nsysnet_fd_set

Definition at line 30 of file _socket.h.

Function Documentation

◆ socket_lib_init()

void socket_lib_init ( )

◆ socket_lib_finish()

void socket_lib_finish ( )

◆ accept()

int RPLWRAP() accept ( int  sockfd,
struct sockaddr addr,
socklen_t addrlen 
)

◆ bind()

int RPLWRAP() bind ( int  sockfd,
const struct sockaddr addr,
socklen_t  addrlen 
)

◆ socketclose()

int RPLWRAP() socketclose ( int  sockfd)

◆ connect()

int RPLWRAP() connect ( int  sockfd,
const struct sockaddr addr,
socklen_t  addrlen 
)

◆ getpeername()

int RPLWRAP() getpeername ( int  sockfd,
struct sockaddr addr,
socklen_t addrlen 
)

◆ getsockname()

int RPLWRAP() getsockname ( int  sockfd,
struct sockaddr addr,
socklen_t addrlen 
)

◆ getsockopt()

int RPLWRAP() getsockopt ( int  sockfd,
int  level,
int  optname,
void *  optval,
socklen_t optlen 
)

◆ listen()

int RPLWRAP() listen ( int  sockfd,
int  backlog 
)

◆ recv()

int RPLWRAP() recv ( int  sockfd,
void *  buf,
size_t  len,
int  flags 
)

◆ recvfrom()

int RPLWRAP() recvfrom ( int  sockfd,
void *  buf,
size_t  len,
int  flags,
struct sockaddr src_addr,
socklen_t addrlen 
)

◆ send()

int RPLWRAP() send ( int  sockfd,
const void *  buf,
size_t  len,
int  flags 
)

◆ sendto()

int RPLWRAP() sendto ( int  sockfd,
const void *  buf,
size_t  len,
int  flags,
const struct sockaddr dest_addr,
socklen_t  addrlen 
)

◆ setsockopt()

int RPLWRAP() setsockopt ( int  sockfd,
int  level,
int  optname,
const void *  optval,
socklen_t  optlen 
)

◆ shutdown()

int RPLWRAP() shutdown ( int  sockfd,
int  how 
)

◆ socket()

int RPLWRAP() socket ( int  domain,
int  type,
int  protocol 
)

◆ select()

int RPLWRAP() select ( int  nfds,
nsysnet_fd_set readfds,
nsysnet_fd_set writefds,
nsysnet_fd_set exceptfds,
struct nsysnet_timeval timeout 
)

◆ inet_ntop()

const char* RPLWRAP() inet_ntop ( int  af,
const void *  src,
char *  dst,
socklen_t  size 
)

◆ inet_pton()

int RPLWRAP() inet_pton ( int  af,
const char *  src,
void *  dst 
)

◆ socketlasterr()

int RPLWRAP() socketlasterr ( )