RetroArch
Classes | Functions
net_compat.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <ctype.h>
#include <string.h>
#include <net/net_compat.h>
#include <net/net_socket.h>
#include <retro_timers.h>
#include <compat/strl.h>
Include dependency graph for net_compat.c:

Classes

struct  in_addr6_compat
 

Functions

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)
 
uint16_t inet_htons (uint16_t hostshort)
 
int inet_ptrton (int af, const char *src, void *dst)
 
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)
 

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:

◆ 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: