RetroArch
Classes | Typedefs | Enumerations | Functions
net_socket.h File Reference
#include <stdint.h>
#include <boolean.h>
#include <string.h>
#include <retro_common_api.h>
Include dependency graph for net_socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  socket_target
 

Typedefs

typedef struct socket_target socket_target_t
 

Enumerations

enum  socket_domain { SOCKET_DOMAIN_INET = 0 }
 
enum  socket_type { SOCKET_TYPE_DATAGRAM = 0, SOCKET_TYPE_STREAM, SOCKET_TYPE_SEQPACKET }
 
enum  socket_protocol { SOCKET_PROTOCOL_NONE = 0, SOCKET_PROTOCOL_TCP, SOCKET_PROTOCOL_UDP }
 

Functions

int socket_init (void **address, uint16_t port, const char *server, enum socket_type type)
 
int socket_next (void **address)
 
int socket_close (int fd)
 
bool socket_nonblock (int fd)
 
int socket_select (int nfds, fd_set *readfs, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
 
int socket_send_all_blocking (int fd, const void *data_, size_t size, bool no_signal)
 
ssize_t socket_send_all_nonblocking (int fd, const void *data_, size_t size, bool no_signal)
 
int socket_receive_all_blocking (int fd, void *data_, size_t size)
 
ssize_t socket_receive_all_nonblocking (int fd, bool *error, void *data_, size_t size)
 
bool socket_bind (int fd, void *data)
 
int socket_connect (int fd, void *data, bool timeout_enable)
 
int socket_create (const char *name, enum socket_domain domain_type, enum socket_type socket_type, enum socket_protocol protocol_type)
 
void socket_set_target (void *data, socket_target_t *in_addr)
 

Typedef Documentation

◆ socket_target_t

Enumeration Type Documentation

◆ socket_domain

Enumerator
SOCKET_DOMAIN_INET 

◆ socket_protocol

Enumerator
SOCKET_PROTOCOL_NONE 
SOCKET_PROTOCOL_TCP 
SOCKET_PROTOCOL_UDP 

◆ socket_type

Enumerator
SOCKET_TYPE_DATAGRAM 
SOCKET_TYPE_STREAM 
SOCKET_TYPE_SEQPACKET 

Function Documentation

◆ socket_bind()

bool socket_bind ( int  fd,
void data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_close()

int socket_close ( int  fd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_connect()

int socket_connect ( int  fd,
void data,
bool  timeout_enable 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_create()

int socket_create ( const char *  name,
enum socket_domain  domain_type,
enum socket_type  socket_type,
enum socket_protocol  protocol_type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_init()

int socket_init ( void **  address,
uint16_t  port,
const char *  server,
enum socket_type  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_next()

int socket_next ( void **  address)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_nonblock()

bool socket_nonblock ( int  fd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_receive_all_blocking()

int socket_receive_all_blocking ( int  fd,
void data_,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_receive_all_nonblocking()

ssize_t socket_receive_all_nonblocking ( int  fd,
bool error,
void data_,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_select()

int socket_select ( int  nfds,
fd_set readfs,
fd_set writefds,
fd_set errorfds,
struct timeval timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_send_all_blocking()

int socket_send_all_blocking ( int  fd,
const void data_,
size_t  size,
bool  no_signal 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_send_all_nonblocking()

ssize_t socket_send_all_nonblocking ( int  fd,
const void data_,
size_t  size,
bool  no_signal 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_set_target()

void socket_set_target ( void data,
socket_target_t in_addr 
)
Here is the call graph for this function:
Here is the caller graph for this function: