RetroArch
Macros | Functions
miniwget.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netdb.h>
#include <strings.h>
#include "miniupnpcstrings.h"
#include "miniwget.h"
#include "connecthostport.h"
#include "receivedata.h"
Include dependency graph for miniwget.c:

Macros

#define closesocket   close
 
#define MIN(x, y)   (((x)<(y))?(x):(y))
 
#define MAXHOSTNAMELEN   64
 

Functions

voidgetHTTPResponse (int s, int *size, int *status_code)
 
static voidminiwget3 (const char *host, unsigned short port, const char *path, int *size, char *addr_str, int addr_str_len, const char *httpversion, unsigned int scope_id, int *status_code)
 
static voidminiwget2 (const char *host, unsigned short port, const char *path, int *size, char *addr_str, int addr_str_len, unsigned int scope_id, int *status_code)
 
int parseURL (const char *url, char *hostname, unsigned short *port, char **path, unsigned int *scope_id)
 
voidminiwget (const char *url, int *size, unsigned int scope_id, int *status_code)
 
voidminiwget_getaddr (const char *url, int *size, char *addr, int addrlen, unsigned int scope_id, int *status_code)
 

Macro Definition Documentation

◆ closesocket

#define closesocket   close

◆ MAXHOSTNAMELEN

#define MAXHOSTNAMELEN   64

◆ MIN

#define MIN (   x,
  y 
)    (((x)<(y))?(x):(y))

Function Documentation

◆ getHTTPResponse()

void* getHTTPResponse ( int  s,
int *  size,
int *  status_code 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ miniwget()

void* miniwget ( const char *  url,
int *  size,
unsigned int  scope_id,
int *  status_code 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ miniwget2()

static void* miniwget2 ( const char *  host,
unsigned short  port,
const char *  path,
int *  size,
char *  addr_str,
int  addr_str_len,
unsigned int  scope_id,
int *  status_code 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ miniwget3()

static void* miniwget3 ( const char *  host,
unsigned short  port,
const char *  path,
int *  size,
char *  addr_str,
int  addr_str_len,
const char *  httpversion,
unsigned int  scope_id,
int *  status_code 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ miniwget_getaddr()

void* miniwget_getaddr ( const char *  url,
int *  size,
char *  addr,
int  addrlen,
unsigned int  scope_id,
int *  status_code 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseURL()

int parseURL ( const char *  url,
char *  hostname,
unsigned short *  port,
char **  path,
unsigned int *  scope_id 
)
Here is the call graph for this function:
Here is the caller graph for this function: