RetroArch
Classes | Macros | Typedefs | Functions
socket.h File Reference
#include <wiiu/types.h>
#include <stdint.h>
#include <sys/time.h>
Include dependency graph for socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sockaddr
 
struct  linger
 

Macros

#define SOL_SOCKET   -1
 
#define INADDR_ANY   0
 
#define AF_UNSPEC   0
 
#define AF_INET   2
 
#define SOCK_STREAM   1
 
#define SOCK_DGRAM   2
 
#define MSG_DONTWAIT   0x0020
 
#define SO_REUSEADDR   0x0004
 
#define SO_NBIO   0x1014
 
#define SO_NONBLOCK   0x1016
 
#define SO_SUCCESS   0
 
#define SO_EWOULDBLOCK   6
 
#define SO_EINVAL   11
 
#define EWOULDBLOCK   SO_EWOULDBLOCK
 
#define EAGAIN   SO_EWOULDBLOCK
 
#define ENOBUFS   105 /* No buffer space available */
 
#define sockaddr_storage   sockaddr_in
 

Typedefs

typedef uint32_t socklen_t
 
typedef uint16_t sa_family_t
 

Functions

void socket_lib_init ()
 
int accept (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen)
 
int socketclose (int sockfd)
 
int connect (int sockfd, const struct sockaddr *addr, socklen_t addrlen)
 
int getpeername (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int getsockname (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int getsockopt (int sockfd, int level, int optname, void *optval, socklen_t *optlen)
 
int listen (int sockfd, int backlog)
 
ssize_t recv (int sockfd, void *buf, size_t len, int flags)
 
ssize_t recvfrom (int sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
 
ssize_t send (int sockfd, const void *buf, size_t len, int flags)
 
ssize_t sendto (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
 
int setsockopt (int sockfd, int level, int optname, const void *optval, socklen_t optlen)
 
int shutdown (int sockfd, int how)
 
int socket (int domain, int type, int protocol)
 
int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
int socketlasterr (void)
 

Macro Definition Documentation

◆ AF_INET

#define AF_INET   2

◆ AF_UNSPEC

#define AF_UNSPEC   0

◆ EAGAIN

#define EAGAIN   SO_EWOULDBLOCK

◆ ENOBUFS

#define ENOBUFS   105 /* No buffer space available */

◆ EWOULDBLOCK

#define EWOULDBLOCK   SO_EWOULDBLOCK

◆ INADDR_ANY

#define INADDR_ANY   0

◆ MSG_DONTWAIT

#define MSG_DONTWAIT   0x0020

◆ SO_EINVAL

#define SO_EINVAL   11

◆ SO_EWOULDBLOCK

#define SO_EWOULDBLOCK   6

◆ SO_NBIO

#define SO_NBIO   0x1014

◆ SO_NONBLOCK

#define SO_NONBLOCK   0x1016

◆ SO_REUSEADDR

#define SO_REUSEADDR   0x0004

◆ SO_SUCCESS

#define SO_SUCCESS   0

◆ SOCK_DGRAM

#define SOCK_DGRAM   2

◆ SOCK_STREAM

#define SOCK_STREAM   1

◆ sockaddr_storage

#define sockaddr_storage   sockaddr_in

◆ SOL_SOCKET

#define SOL_SOCKET   -1

Typedef Documentation

◆ sa_family_t

◆ socklen_t

Function Documentation

◆ accept()

int accept ( int  sockfd,
struct sockaddr addr,
socklen_t addrlen 
)
Here is the caller graph for this function:

◆ bind()

int bind ( int  sockfd,
const struct sockaddr addr,
socklen_t  addrlen 
)
Here is the caller graph for this function:

◆ connect()

int connect ( int  sockfd,
const struct sockaddr addr,
socklen_t  addrlen 
)
Here is the caller graph for this function:

◆ getpeername()

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

◆ getsockname()

int getsockname ( int  sockfd,
struct sockaddr addr,
socklen_t addrlen 
)
Here is the caller graph for this function:

◆ getsockopt()

int getsockopt ( int  sockfd,
int  level,
int  optname,
void optval,
socklen_t optlen 
)
Here is the caller graph for this function:

◆ listen()

int listen ( int  sockfd,
int  backlog 
)
Here is the caller graph for this function:

◆ recv()

ssize_t recv ( int  sockfd,
void buf,
size_t  len,
int  flags 
)
Here is the caller graph for this function:

◆ recvfrom()

ssize_t recvfrom ( int  sockfd,
void buf,
size_t  len,
int  flags,
struct sockaddr src_addr,
socklen_t addrlen 
)
Here is the caller graph for this function:

◆ select()

int select ( int  nfds,
fd_set readfds,
fd_set writefds,
fd_set exceptfds,
struct timeval timeout 
)
Here is the caller graph for this function:

◆ send()

ssize_t send ( int  sockfd,
const void buf,
size_t  len,
int  flags 
)
Here is the caller graph for this function:

◆ sendto()

ssize_t sendto ( int  sockfd,
const void buf,
size_t  len,
int  flags,
const struct sockaddr dest_addr,
socklen_t  addrlen 
)
Here is the caller graph for this function:

◆ setsockopt()

int setsockopt ( int  sockfd,
int  level,
int  optname,
const void optval,
socklen_t  optlen 
)
Here is the caller graph for this function:

◆ shutdown()

int shutdown ( int  sockfd,
int  how 
)
Here is the caller graph for this function:

◆ socket()

int socket ( int  domain,
int  type,
int  protocol 
)
Here is the caller graph for this function:

◆ socket_lib_init()

void socket_lib_init ( )
Here is the caller graph for this function:

◆ socketclose()

int socketclose ( int  sockfd)
Here is the caller graph for this function:

◆ socketlasterr()

int socketlasterr ( void  )
Here is the caller graph for this function: