RetroArch
Macros | Functions
net_compat.h File Reference
#include <boolean.h>
#include <retro_inline.h>
#include <stdint.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <sys/time.h>
#include <unistd.h>
Include dependency graph for net_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MSG_NOSIGNAL   0
 

Functions

static INLINE bool isagain (int bytes)
 
uint16_t inet_htons (uint16_t hostshort)
 
int inet_ptrton (int af, const char *src, void *dst)
 
int getaddrinfo_retro (const char *node, const char *service, struct addrinfo *hints, struct addrinfo **res)
 
void freeaddrinfo_retro (struct addrinfo *res)
 
bool network_init (void)
 
void network_deinit (void)
 
const char * inet_ntop_compat (int af, const void *src, char *dst, socklen_t cnt)
 
bool udp_send_packet (const char *host, uint16_t port, const char *msg)
 

Macro Definition Documentation

◆ MSG_NOSIGNAL

#define MSG_NOSIGNAL   0

Function Documentation

◆ freeaddrinfo_retro()

void freeaddrinfo_retro ( struct addrinfo res)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getaddrinfo_retro()

int getaddrinfo_retro ( const char *  node,
const char *  service,
struct addrinfo hints,
struct addrinfo **  res 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inet_htons()

uint16_t inet_htons ( uint16_t  hostshort)
Here is the caller graph for this function:

◆ inet_ntop_compat()

const char* inet_ntop_compat ( int  af,
const void src,
char *  dst,
socklen_t  cnt 
)
Here is the call graph for this function:

◆ inet_ptrton()

int inet_ptrton ( int  af,
const char *  src,
void dst 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isagain()

static INLINE bool isagain ( int  bytes)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ network_deinit()

void network_deinit ( void  )

network_deinit:

Deinitialize platform specific socket libraries.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ network_init()

bool network_init ( void  )

network_init:

Platform specific socket library initialization.

Returns: true (1) if successful, otherwise false (0).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ udp_send_packet()

bool udp_send_packet ( const char *  host,
uint16_t  port,
const char *  msg 
)
Here is the call graph for this function:
Here is the caller graph for this function: