#include <stdint.h>
#include <boolean.h>
#include <string.h>
#include <retro_common_api.h>
Go to the source code of this file.
|
| 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) |
| |
◆ socket_target_t
◆ 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 | |
◆ socket_bind()
| bool socket_bind |
( |
int |
fd, |
|
|
void * |
data |
|
) |
| |
◆ socket_close()
| int socket_close |
( |
int |
fd | ) |
|
◆ socket_connect()
| int socket_connect |
( |
int |
fd, |
|
|
void * |
data, |
|
|
bool |
timeout_enable |
|
) |
| |
◆ socket_create()
◆ socket_init()
◆ socket_next()
| int socket_next |
( |
void ** |
address | ) |
|
◆ socket_nonblock()
| bool socket_nonblock |
( |
int |
fd | ) |
|
◆ socket_receive_all_blocking()
| int socket_receive_all_blocking |
( |
int |
fd, |
|
|
void * |
data_, |
|
|
size_t |
size |
|
) |
| |
◆ socket_receive_all_nonblocking()
| ssize_t socket_receive_all_nonblocking |
( |
int |
fd, |
|
|
bool * |
error, |
|
|
void * |
data_, |
|
|
size_t |
size |
|
) |
| |
◆ socket_select()
◆ socket_send_all_blocking()
| int socket_send_all_blocking |
( |
int |
fd, |
|
|
const void * |
data_, |
|
|
size_t |
size, |
|
|
bool |
no_signal |
|
) |
| |
◆ socket_send_all_nonblocking()
| ssize_t socket_send_all_nonblocking |
( |
int |
fd, |
|
|
const void * |
data_, |
|
|
size_t |
size, |
|
|
bool |
no_signal |
|
) |
| |
◆ socket_set_target()